Use zenity for visiting mesh sites
This commit is contained in:
parent
62b69e0cbd
commit
dbed21ecd9
|
@ -49,15 +49,11 @@ if [ ! -f $USERS_FILE ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --title $"Visit IPFS site" \
|
||||
--backtitle $"Freedombone mesh" \
|
||||
--inputbox $"Enter the username or Tox ID for the site you wish to visit" 8 70 2>$data
|
||||
data=$(zenity --forms --title="Visit IPFS site" --text="Enter the username or Tox ID for the site you wish to visit" --separator="," --add-entry="")
|
||||
sel=$?
|
||||
case $sel in
|
||||
0)
|
||||
TOX_USERNAME_OR_ID=$(<$data)
|
||||
TOX_USERNAME_OR_ID="$data"
|
||||
if [ ${#TOX_USERNAME_OR_ID} -gt 0 ]; then
|
||||
if ! grep -q "$TOX_USERNAME_OR_ID" $USERS_FILE; then
|
||||
TOX_ID="$TOX_USERNAME_OR_ID"
|
||||
|
|
Loading…
Reference in New Issue