From 0de5db390e4586ace72d5a9ce3f3c5f5c1f10dc7 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 1 Jan 2026 17:17:44 +0100 Subject: [PATCH] Do not run X, if no xsession is defined --- zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zprofile b/zprofile index 29e991c..ffef4bc 100644 --- a/zprofile +++ b/zprofile @@ -39,7 +39,7 @@ shopts=$- set -$shopts unset sh shopts -if [[ $TTY == /dev/tty1 ]]; then +if [[ $TTY == /dev/tty1 && -e $HOME/.xsession ]]; then export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority exec startx :1 fi