Commit 0248ae7d authored by Christopher's avatar Christopher

linuxparty.sh: auto detect GUI

parent 643ff9f7
......@@ -4,9 +4,19 @@ set -e
#options for GUI are kdialog zenity none
if [ -z "$GUI" ]; then
GUI=kdialog
echo "\$GUI is not set. Auto detecting GUI..."
if command -v zenity 2>&1 > /dev/null; then
GUI=zenity
elif command -v kdialog 2>&1 > /dev/null; then
GUI=kdialog
else
GUI=none
fi
fi
echo "Using GUI=$GUI."
if [ "$GUI" == "none" ]; then
NOGUI=yes
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment