Fix shell login when using xinit
This commit is contained in:
parent
518b69e611
commit
411e45bfdf
@ -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"
|
||||
|
Reference in New Issue
Block a user