Automatically start X
parent
eab043862e
commit
8c82d5334d
|
@ -1,5 +1,5 @@
|
|||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
exec startx
|
||||
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue