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
Lightdm does not "remember" user session #10349
Comments
I actually have two installations (fresh, installed few days ago, two different machines). On one machine it saves the choice and doesn't on the other, I'll try to look more into it, if someone could confirm that or deny, would be nice. |
Confirmed for me on channel nixos-15.09 here. Installed just a few days ago here, too.. |
On my unstable NixOS system |
Just a blind guess. users.mutableUsers = true; - this is mine (at least on the machine which 2016-03-22 11:58 GMT+00:00 José Romildo Malaquias notifications@github.com
Tomasz Czyż |
On my configuration |
Do you use any "proper" xsession manager? I'm using xfce session with Reference: 2016-03-22 13:13 GMT+00:00 José Romildo Malaquias notifications@github.com
Tomasz Czyż |
Currently I am using mainly |
Maybe directory where lightdm user preferences are saved has wrong 2016-03-22 14:56 GMT+00:00 José Romildo Malaquias notifications@github.com
Tomasz Czyż |
Where would
No file is found. On Gentoo Linux also there is no such file. |
That's how it looks like on my box: cd /var/lib/lightdm-data/ && ls -altotal 23 2016-03-22 15:07 GMT+00:00 José Romildo Malaquias notifications@github.com
Tomasz Czyż |
On my system there is:
Permissions seems to be the same as in your system. |
I had this problem on 16.03. It seemed to be working 16.09, but after I switched to nixos-unstable it's happening again. |
@cumber is still an issue for you? If so what do permissions and content look like on |
I think there are some new problems there due to removal of patches. I'm getting failures to execute |
@vcunat I couldn't quite figure out the state management - at a cursory glance |
I'm not sure if it's related, but since recently I have to write out my username instead of it being pre-selected in a combobox. |
@pbogdan No, it hasn't been bothering me for a while, but I redid how my session was configured a while ago, so I might only have the one option now... I'll see if I can verify |
@vcunat hmm not sure - anything of interest in |
I don't think I did any config at all. I just use one user from lightdm and one session; exceptions to that are very rare. |
Could you check the contents of |
Yes, it is there. Still, the UI only shows a plain input field for the username, without any hint of offering choice. (unstable+ NixOS) |
And that's without any graphical sessions active - just lightdm sitting at the login prompt and inspecting the file via |
Yeah, it's working fine for me (shows my name in the drop down box, and remembers which session I last used), on both my nixos-17.03 machine and my nixos-unstable ones. I used to use
I don't recall if making that switch was at the same time that it started working again. |
@pbogdan: it has the GTK GUI, but it makes me just write the user name anyway. (No other graphical stuff is running.) |
And this issue is back to affecting me too, now. It does give me a choice box, it's just sitting on "Other" (and there are no more options when I click on it), displaying a typeable username field underneath. |
I just upgraded a machine from 17.03 to 17.09. That machine was remembering the session/user fine on 17.03, but now it always requires me to type my user name in. (My earlier comment was about my nixos-unstable machines; I presume whatever changed happened sometime earlier and has just made it into the stable release). |
I think we probably can close this if was solved in latest stable and older versions are not supported anymore. |
@spinus It's the other way around, sadly. It worked correctly on 17.03, and has regressed sometime before 17.09. |
The original bug I opened was about session choice, not necessarily about user selection. Actually I think in lightdm I always had to type the name (but I think this is because theme and has nothing to do with selection saving). @cumber is the session selection preserved after you type the username? |
@spinus Hmm, I had assumed it was the same mechanism for remembering both session and user that was failing. I have only a single session configured now, so I can't tell. I could set up another as a test. Back when I had this issue previously (16.03?) it was definitely affecting both user and session. |
I confirm that. On one machine lightdm (still) requires me to always type the user name. That started probably somewhere between 17.03 and 17.09. |
FWIW I accidentally triggered the issue of username not being saved, in my specific case it was because of the user's shell not being listed in
without |
Ah, that's probably what's going on with me too, thanks @pbogdan! I have a custom build of zsh in my user level nix configuration, and my nixos configuration lists /home/cumber/.nix-profile/bin/zsh as my shell. |
I can confirm adding |
The problem is solved for me as well when adding |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
We could/should add all of the shells that are set for users to |
I marked this as stale due to inactivity. → More info |
Just a note: It seems this bug is fixed on a current 20.03 system. I tried selecting several different windowmanagers in lightdm and it worked as expected (remembered the session choice across logouts.) So I guess this issue can be closed if some other reporters confirm as well. |
I still have to add |
When you login with lightdm, usually (on other distros) lightdm saves your choice and when you type username next time, session will be switched to your previous choice and after entering the password it will login to that session.
In nixos (tested on 16.03) lightdm ignores all previous choices and login always to first session.
The text was updated successfully, but these errors were encountered: