[Bug]: GUI Settings fail to apply Greeter/Lock Screen sync, requires manual "sudo dms-greeter sync" to fix permissions
Description:
Hello! I am a beginner in Linux and especially in bug reporting, but I hope the information below will be useful to you.
At some point, after a system update and configuring TLP, the greeter and lock screen suddenly stopped appearing after I turned on the computer. The system started logging me in automatically, without user selection or even entering a password.
Then, I tried to resolve this through DMS Settings -> Security -> Greeter / Lock Screen. In the Status section, I saw it was displayed in yellow and indicated it was not linked. I tried to fix it there. After some clicks (I don't remember exactly which ones), I was prompted with a standard terminal menu where I had to type 1 or 2 and press Enter. This did not fix the issue.
Then, in the User & Accounts -> Accounts section, I removed the greeter login access for my only user ("Remove greeter login access"). After doing this, the lock screen finally appeared, and I could enter my password.
However, after this, a new problem appeared: during system boot (after the GRUB interface), the following error shows up: FATAL: go: failed to launch remembered greeter session: open /var/cache/dms-greeter/.local/state/memory.json: permission denied
Finally, after running sudo dms-greeter sync in the terminal and re-adding the user (the only one, admin) to the greeter, everything started working correctly, I believe.
Environment: Fedora 44, Niri, Dux Shell
I understand that my information might be a bit vague, scattered, or imprecise. I mostly open issues for Android app projects, and I recently decided to start doing so for desktop Linux projects as well. I am opening this issue here in the hope that it helps your project, which I really like.
Also, I want to say thank you for your project! Your shell with the Material You design, and especially the redesign in Material You Expressive, is amazing. I really want to help your project become better and help make Material You design more popular!
Thank you for your attention, and I wish you all the best 😌
Thanks for the report!
Booting in without a password was the greeter's auto-login: Settings → Greeter → Auto-login on startup. Turn it off if you want the login screen back.
This should be fixed in the latest, then run this once without sudo, since dms-greeter now asks for privileges itself:
dms-greeter sync
Closing as fixed. Reopen if it comes back on v2.1.0 or later.
Thank you as well! I'm glad to help with this project. Have a good day 😌