Browse Source

Use zenity entry so that enter key works

stretch
Bob Mottram 4 years ago
parent
commit
dab37d1d22
  1. 2
      src/freedombone-image-customise
  2. 2
      src/freedombone-mesh-visit-site

2
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

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

Loading…
Cancel
Save