Summary: | Autologin not working | ||
---|---|---|---|
Product: | [Plasma] user-manager | Reporter: | Sven Claussner <scl.gplus> |
Component: | kcontrol module | Assignee: | David Edmundson <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrebrait, fxb77, jodr666, kde, mail, mykolaspanavas, subdiff |
Priority: | NOR | ||
Version: | 5.8.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/user-manager/b154c7522b639c54f9a0da889069255b327727f3 | Version Fixed In: | |
Attachments: |
Screen1
Screen2 |
Description
Sven Claussner
2016-05-14 06:39:09 UTC
Similar problem here, I can not disable autologin. Duplicate of this bug? https://bugs.kde.org/show_bug.cgi?id=358441 Also have the bug on Kubuntu 16.04 - auto-login was working on 14.04 Created attachment 100960 [details]
Screen1
Created attachment 100961 [details]
Screen2
There seems to be 2 different way to set auto-login, which creates confusion for the user, and the system. See 2 attachments above. I think I now have auto-login, but the box [ ] Auto login in screen2 is not persistent. Can confirm this one, the auto-login only works if you set it on sddm advanced settings. Needs to be dealt with! It's very confusing for the user. Since Alex gave up on KDE hacking according to his blog I'll claim the report in the meantime until I can gather some information what to do with this confusing option in the user manager. I'll also bump up the version number, since it's still present in 5.8 and master branch. See also system settings -> startup and shutdown -> login scren ->automatic login Worst still it's writing into the GDM config. #define PATH_GDM_CUSTOM "/etc/gdm/custom.conf" ... if (!g_key_file_load_from_file (keyfile, PATH_GDM_CUSTOM, G_KEY_FILE_KEEP_COMMENTS, error)) { g_key_file_free (keyfile); return FALSE; } .. That's a bit rubbish from our side. As an added failure, if /etc/gdm/custom.conf does not exist it will return an error rather than creating it. Meaning if we queried the data from SDDM it still isn't going to work. I'll remove this option for now, maybe I'll use the SDDM helper that changes the SDDM conf. *** Bug 358441 has been marked as a duplicate of this bug. *** (In reply to David Edmundson from comment #10) > As an added failure, if /etc/gdm/custom.conf does not exist it will return > an error rather than creating it. > > Meaning if we queried the data from SDDM it still isn't going to work. > > I'll remove this option for now, maybe I'll use the SDDM helper that changes > the SDDM conf. Is it the same mechanism that the Advanced Settings for the Login Screen uses? Git commit b154c7522b639c54f9a0da889069255b327727f3 by David Edmundson. Committed on 13/12/2016 at 00:03. Pushed by davidedmundson into branch 'master'. Set Automatic login flag to adjust SDDM config directly Summary: AccountsService is a bit weird, the automatic login flag adjusts a config file in /etc/gdm/ This doesn't work for two reasons: 1) SDDM (our Display Manager) obviously doesn't read this file 2) AccountsService doesn't create the folder if it doesn't exist, so we can't even use if we tried. This patch adjusts UserManager to write /etc/sddm.conf directly. It's not ideal, but I think it's the only option we have, certainly in the short term. Test Plan: Set automatic login on a user Restarted KCM, still set Set it on another user, config changed properly, old user was updated Unchecked it on my current user, config file was unset properly Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D3658 M +1 -1 CMakeLists.txt M +1 -0 src/CMakeLists.txt M +31 -4 src/account.ui M +67 -5 src/lib/accountmodel.cpp M +11 -1 src/lib/accountmodel.h https://commits.kde.org/user-manager/b154c7522b639c54f9a0da889069255b327727f3 Git commit 4761ae39b60d6bb1923d78c2e4333b477cb3c240 by David Edmundson. Committed on 14/12/2016 at 11:35. Pushed by davidedmundson into branch 'Plasma/5.8'. Hide "automatic login" button in UserAccounts since is does absolutely nothing Summary: automaticLogin only sets a flag in AccountsService, which is only supported by GDM. This is fixed in 5.9, but as that includes a dependency change, it can't go into stable. So we should hide the completely broken option in 5.8 Test Plan: Looked at it. Reviewers: #plasma, mart Reviewed By: mart Subscribers: mart, subdiff, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D3062 M +31 -4 src/account.ui M +5 -0 src/accountinfo.cpp https://commits.kde.org/user-manager/4761ae39b60d6bb1923d78c2e4333b477cb3c240 |