From dab37d1d226afb95e33267850c1be8d02626075d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Dec 2017 19:37:36 +0000 Subject: [PATCH] Use zenity entry so that enter key works --- src/freedombone-image-customise | 2 +- src/freedombone-mesh-visit-site | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 7d1a96e1..fdcbe0f3 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -789,7 +789,7 @@ function mesh_client_startup_applications { echo '' >> $START_DESKTOP echo 'INITIAL_TOX_USERNAME=""' >> $START_DESKTOP echo 'while [ ${#INITIAL_TOX_USERNAME} -eq 0 ]; do' >> $START_DESKTOP - echo " data=\$(zenity --forms --title=\"$MESH_TITLE\" --text=\"$MESH_SET_USERNAME\" --separator=\",\" --add-entry=\"Username\")" >> $START_DESKTOP + echo " data=\$(zenity --entry --title=\"$MESH_TITLE\" --text=\"$MESH_SET_USERNAME\")" >> $START_DESKTOP echo ' accepted=$?' >> $START_DESKTOP echo ' if ((accepted == 0)); then' >> $START_DESKTOP echo " INITIAL_TOX_USERNAME=\$(awk -F, '{print \$1}' <<<\$data)" >> $START_DESKTOP diff --git a/src/freedombone-mesh-visit-site b/src/freedombone-mesh-visit-site index f27d4920..c667ff08 100755 --- a/src/freedombone-mesh-visit-site +++ b/src/freedombone-mesh-visit-site @@ -49,7 +49,7 @@ if [ ! -f $USERS_FILE ]; then exit 0 fi -data=$(zenity --forms --title="Visit IPFS site" --text="Enter the username or Tox ID for the site you wish to visit" --separator="," --add-entry="") +data=$(zenity --entry --title="Visit IPFS site" --text="Enter the username or Tox ID for the site you wish to visit") sel=$? case $sel in 0)