sddm-chili icon indicating copy to clipboard operation
sddm-chili copied to clipboard

Chili does not correctly read last logged-in user

Open gctypo opened this issue 2 years ago • 0 comments

SDDM's last logged in user, when set in /var/lib/sddm/state.conf, under [Last] and User=username, is ignored by Chili. Default SDDM theme, and every other I tested, reads this field correctly without issue. When the theme is set to Chili though, the last user seems to end up being the last user added to the system from that monitor for some reason. In my case, one monitor defaults to the second user added, the other the third - even after repeated logins and reboots as the original user.

All SDDM configs show SDDM should be functioning as intended:

/var/lib/sddm/state.conf:

[Last]
# Name of the last logged-in user.
# This user will be preselected when the login screen appears
User=gctypo


# Name of the session for the last logged-in user.
# This session will be preselected when the login screen appears.
Session=/usr/share/xsessions/i3-with-shmlog.desktop 

Excerpt from /etc/sddm.conf.d/sddm.conf:

[Theme]
Current=chili

[Users]
RememberLastUser=true

/usr/share/sddm/themes/chili/theme.conf:

[General]
background=assets/background.jpg

ScreenWidth=1440
ScreenHeight=900

blur=true
recursiveBlurLoops=4
recursiveBlurRadius=10

PasswordFieldOutlined=false

PowerIconSize=
FontPointSize=
AvatarPixelSize=

translationReboot=
translationSuspend=
translationPowerOff=

To reproduce:

  1. Have a user
  2. Install SDDM, then sddm-chili
  3. Ensure RememberLastUser=true and theme is Current=chili
  4. Add a new user with useradd
  5. Reboot, check SDDM preselected user
  6. Log in as original user, verify contents of /var/lib/sddm/state.conf, then log out
  7. Check SDDM preselected user
  8. Reboot, log in as original user
  9. Plug in second monitor
  10. Repeat steps 4-7
  11. Change theme back to default, log out
  12. Check SDDM preselected user

gctypo avatar Jan 22 '22 06:01 gctypo