Use zenity entry so that enter key works
This commit is contained in:
parent
bc51fa6b3a
commit
dab37d1d22
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue