Use zenity entry so that enter key works

This commit is contained in:
Bob Mottram 2017-12-06 19:37:36 +00:00
parent bc51fa6b3a
commit dab37d1d22
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)