Skip to content
Snippets Groups Projects
Commit 0117f4a7 authored by Christopher's avatar Christopher
Browse files

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

parent 05d4fce8
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment