1
0
mirror of https://github.com/the-sane/lug-helper.git synced 2025-03-15 04:50:36 +00:00

Fall back to terminal menus if zenity is broken

This commit is contained in:
the-sane 2022-11-20 11:48:21 -05:00
parent f3a632ec60
commit 83a90d35f1

@ -2085,7 +2085,12 @@ quit() {
# Check if Zenity is available
use_zenity=0
if [ -x "$(command -v zenity)" ]; then
use_zenity=1
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