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