zsh: improve condition for startx
parent
553a0e6720
commit
91e2532b3e
|
@ -1,5 +1,5 @@
|
||||||
emulate sh -c 'source /etc/profile'
|
emulate sh -c 'source /etc/profile'
|
||||||
|
|
||||||
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && "$(tty)" = "/dev/tty1" ]]; then
|
||||||
exec startx
|
exec startx
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue