Do not run X, if no xsession is defined

This commit is contained in:
crater2150 2026-01-01 17:17:44 +01:00
parent 7a0e0f31a9
commit 0de5db390e

View file

@ -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