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

View File

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