From 0117f4a77cc2ed99f415ea6273d1f3ecb9393174 Mon Sep 17 00:00:00 2001 From: Christopher <christopher.spinrath@rwth-aachen.de> Date: Sun, 28 Sep 2014 16:28:56 +0200 Subject: [PATCH] linuxparty.sh: check for $DISPLAY when auto detecting GUI --- scripts/linuxparty.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/linuxparty.sh b/scripts/linuxparty.sh index 72e0684..e8c08f1 100644 --- a/scripts/linuxparty.sh +++ b/scripts/linuxparty.sh @@ -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 -- GitLab