From 863ad4c343abcb2849401383f97d3f42111b774b Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Sun, 3 Sep 2017 10:52:30 +0100 Subject: [PATCH] Show syncthing QR code --- src/freedombone-app-syncthing | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-syncthing b/src/freedombone-app-syncthing index 183984255..9426aed43 100755 --- a/src/freedombone-app-syncthing +++ b/src/freedombone-app-syncthing @@ -94,7 +94,11 @@ function syncthing_show_id { SYNCTHING_ID=$(cat ~/.syncthing-server-id) dialog --title $"Device ID for ${PROJECT_NAME}" \ --backtitle $"Freedombone User Control Panel" \ - --msgbox $"In a desktop terminal press shift and select the ID below,\nthen right click and copy.\n\nWithin Connectbot select Menu/Copy and then highlight the ID below\n\n$SYNCTHING_ID" 12 78 + --msgbox $"In a desktop terminal press shift and select the ID below,\nthen right click and copy.\n\nWithin Connectbot select Menu/Copy and then highlight the ID below\n\n$SYNCTHING_ID\n\nAlternatively press Enter to display a QR code which can be scanned." 13 78 + clear + echo $'Your Syncthing ID code' + echo '' + echo "$SYNCTHING_ID" | qrencode -t UTF8 } function syncthing_add_id { -- GitLab