Skip to content
Snippets Groups Projects
Commit 0248ae7d authored by Christopher's avatar Christopher
Browse files

linuxparty.sh: auto detect GUI

parent 643ff9f7
Branches
Tags
No related merge requests found
......@@ -4,8 +4,18 @@ set -e
#options for GUI are kdialog zenity none
if [ -z "$GUI" ]; then
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment