Fix shell login when using xinit

This commit is contained in:
natemaia 2019-12-09 22:59:14 -08:00
parent 518b69e611
commit 411e45bfdf

View File

@ -1680,7 +1680,7 @@ xinit_config()
EOF
cat > "$MNT/home/$NEWUSER/$LOGINRC" <<- EOF
# automatically run startx when logging in on tty1
[ \$XDG_VTNR -eq 1 ] && exec startx
[ -z "\$DISPLAY" ] && [ \$XDG_VTNR -eq 1 ] && exec startx
EOF
else
rm -rf "$AUTOLOGIN_SERV"