Commit 0117f4a7 authored by Christopher's avatar Christopher

linuxparty.sh: check for $DISPLAY when auto detecting GUI

parent 05d4fce8
......@@ -6,9 +6,9 @@ set -e
if [ -z "$GUI" ]; then
echo "\$GUI is not set. Auto detecting GUI..."
if command -v zenity 2>&1 > /dev/null; then
if command -v zenity 2>&1 > /dev/null && test -n "$DISPLAY"; then
GUI=zenity
elif command -v kdialog 2>&1 > /dev/null; then
elif command -v kdialog 2>&1 > /dev/null && test -n "$DISPLAY"; then
GUI=kdialog
else
GUI=none
......
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