Do I still need autologin hack?

This commit is contained in:
John Mertz 2024-01-31 22:32:04 -07:00
parent 5389a1e484
commit e676b70738
1 changed files with 3 additions and 1 deletions

View File

@ -17,8 +17,10 @@ esac
# agetty is set to automatically log me in on tty1
# Automatically launch GUI on tty1 after login
# I don't think that this is used anymore in Sericea, I think autologin is handled by SDDM
# Still, it does not hurt for later distrohopping
if [ "$(tty)" == '/dev/tty1' ] && [ ! "$SSH_TTY" ]; then
. "${HOME}/.dotfiles/bash/bash_login"
source "${HOME}/.dotfiles/bash/bash_login"
LAST_GUI=$(cat "${HOME}/.spool/last_login_gui" 2>/dev/null)
if [ -f "${HOME}/.spool/last_login_gui" ]; then
${HOME}/scripts/${LAST_GUI}/start${LAST_GUI}.sh