mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 15:44:20 +00:00
Fall back to terminal menus if zenity is broken
This commit is contained in:
parent
f3a632ec60
commit
83a90d35f1
@ -2085,7 +2085,12 @@ quit() {
|
||||
# Check if Zenity is available
|
||||
use_zenity=0
|
||||
if [ -x "$(command -v zenity)" ]; then
|
||||
if zenity --version >/dev/null; then
|
||||
use_zenity=1
|
||||
else
|
||||
# Zenity is broken
|
||||
debug_print continue "Zenity failed to start. Falling back to terminal menus"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set defaults
|
||||
|
Loading…
Reference in New Issue
Block a user