Do not run X, if no xsession is defined
This commit is contained in:
parent
7a0e0f31a9
commit
0de5db390e
1 changed files with 1 additions and 1 deletions
2
zprofile
2
zprofile
|
|
@ -39,7 +39,7 @@ shopts=$-
|
||||||
set -$shopts
|
set -$shopts
|
||||||
unset sh shopts
|
unset sh shopts
|
||||||
|
|
||||||
if [[ $TTY == /dev/tty1 ]]; then
|
if [[ $TTY == /dev/tty1 && -e $HOME/.xsession ]]; then
|
||||||
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
||||||
exec startx :1
|
exec startx :1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue