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

sddm: cannot login #43241

Closed
worldofpeace opened this issue Jul 9, 2018 · 5 comments · Fixed by #43243
Closed

sddm: cannot login #43241

worldofpeace opened this issue Jul 9, 2018 · 5 comments · Fixed by #43243

Comments

@worldofpeace
Copy link
Contributor

Issue description

After this got merged, and is in the nixos-unstable channel, I noticed after I rebuilt my system that when sddm starts and I type in my password it just goes black and restarts sddm. Meaning that I can never reach the desktop :(

I could also not find anything useful in the journal.

cc @peterhoeg @bkchr

@peterhoeg
Copy link
Member

In a VT, try this as root:

rm -rf /var/lib/sddm/*

@worldofpeace
Copy link
Contributor Author

Ahh that makes perfect sense and worked @peterhoeg
Is there any real way to make sure this doesn't happen for someone else?

@peterhoeg
Copy link
Member

peterhoeg commented Jul 9, 2018

There was a PR some time ago that was supposed to address this (it was merged) that would simply clear out the directory on start but it looks like that didn't do the trick. I don't remember which. IMHO, the proper way to handle this is something like this:

systemd.tmpfiles.rules = [
  "e ${config.users.users.sddm.home}/.cache - - - 0"
];

@bkchr
Copy link
Contributor

bkchr commented Jul 9, 2018

I also often have this problem.. @peterhoeg could you open a pull request that removes the old solution and that adds your solution?

@peterhoeg
Copy link
Member

The commit was dae2600 - I'll PR this.

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

Successfully merging a pull request may close this issue.

3 participants