Add interactive options for invite line, QR code, and mount point in backtunnel-share
This commit is contained in:
@@ -16,5 +16,9 @@ Exec=bash -lc '
|
||||
DUR="$(kdialog --combobox "Share duration" 30m 2h 6h 1d 2d --editable "2h")" || exit 1;
|
||||
TPORT="$(kdialog --inputbox "Tunnel port on remote:" "2222")" || exit 1;
|
||||
LPORT="$(kdialog --inputbox "Local SSH port to expose:" "22")" || exit 1;
|
||||
konsole --noclose -e backtunnel-share "$FOLDER" with "$REMOTE" for "$DUR" -p "$TPORT" -l "$LPORT"
|
||||
if kdialog --yesno "Print invite line for chat?"; then INV="-i"; else INV=""; fi;
|
||||
if kdialog --yesno "Show QR code for the invite?"; then QR="--qr"; else QR=""; fi;
|
||||
MP="$(kdialog --inputbox "Suggested mount point in invite:" "/mnt/remote-rssh")" || exit 1;
|
||||
konsole --noclose -e backtunnel-share "$FOLDER" with "$REMOTE" for "$DUR" \
|
||||
-p "$TPORT" -l "$LPORT" $INV $QR --invite-mount "$MP"
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user