Commit 0117f4a7 authored by Christopher's avatar Christopher
Browse files 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
elif command -v kdialog 2>&1 > /dev/null; then
elif command -v kdialog 2>&1 > /dev/null && test -n "$DISPLAY"; then
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