mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:14:21 +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
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user