Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chili does not correctly read last logged-in user #11

Open
gctypo opened this issue Jan 22, 2022 · 0 comments
Open

Chili does not correctly read last logged-in user #11

gctypo opened this issue Jan 22, 2022 · 0 comments

Comments

@gctypo
Copy link

gctypo commented Jan 22, 2022

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 gctypo changed the title RememberLastUser does not remember last user Chili does not correctly read last logged-in user Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant