Procházet zdrojové kódy

Use zenity entry so that enter key works

Bob Mottram před 7 roky
rodič
revize
dab37d1d22

+ 1
- 1
src/freedombone-image-customise Zobrazit soubor

@@ -789,7 +789,7 @@ function mesh_client_startup_applications {
789 789
     echo '' >> $START_DESKTOP
790 790
     echo 'INITIAL_TOX_USERNAME=""' >> $START_DESKTOP
791 791
     echo 'while [ ${#INITIAL_TOX_USERNAME} -eq 0 ]; do' >> $START_DESKTOP
792
-    echo "  data=\$(zenity --forms --title=\"$MESH_TITLE\" --text=\"$MESH_SET_USERNAME\" --separator=\",\" --add-entry=\"Username\")" >> $START_DESKTOP
792
+    echo "  data=\$(zenity --entry --title=\"$MESH_TITLE\" --text=\"$MESH_SET_USERNAME\")" >> $START_DESKTOP
793 793
     echo '  accepted=$?' >> $START_DESKTOP
794 794
     echo '  if ((accepted == 0)); then' >> $START_DESKTOP
795 795
     echo "      INITIAL_TOX_USERNAME=\$(awk -F, '{print \$1}' <<<\$data)" >> $START_DESKTOP

+ 1
- 1
src/freedombone-mesh-visit-site Zobrazit soubor

@@ -49,7 +49,7 @@ if [ ! -f $USERS_FILE ]; then
49 49
     exit 0
50 50
 fi
51 51
 
52
-data=$(zenity --forms --title="Visit IPFS site" --text="Enter the username or Tox ID for the site you wish to visit" --separator="," --add-entry="")
52
+data=$(zenity --entry --title="Visit IPFS site" --text="Enter the username or Tox ID for the site you wish to visit")
53 53
 sel=$?
54 54
 case $sel in
55 55
     0)