Bug 859347
Summary: | It's impossible to switch user in KDE using LightDM | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin Bříza <mbriza> | ||||
Component: | kde-workspace | Assignee: | Martin Bříza <mbriza> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | christoph.wickert, gregor, jgrulich, jreznik, kevin, ltinkl, rdieter, rnovacek, than | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-12-20 16:01:25 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 867924 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Martin Bříza
2012-09-21 09:14:52 UTC
With kde-workspace-4.9.1-6.fc18.x86_64, the "Switch User" button is not present in the menu when LightDM is used. When KDM is used, the button is back though. So, as I found out, the button is missing because the environment asks the system (via SystemD or ConsoleKit) if the DM supports switching users. LightDM may not present itself to the system as being capable of this feature but there is definitely a way of doing it - manually, using command "dm-tool switch-to-greeter", a new session is created, making it possible to log in for more users. lightdm supports switching users. Just like gdm it comes with a gdmflexiserver binary which is exposed over dbus and can be called by dm-tool. Works fine here with lightdm-1.3.3-2 and lightdm-gtk-1.3.1-1, so the problem must either be in kdeworkspace or lightdm-kde. I guess kdm does things differently and kdebase only supports kdm's way. Yes, I'm investigating this and it seems it's in our patch for systemd support in kde-workspace but I'm not 100% sure, testing it right now. Created attachment 623460 [details]
Proposed patch to fix the issue
QDBus refuses to return any of the types returned by SystemD as they are not registered according to its error messages. This patch works around this issue and makes it possible to correctly switch users in KDE using LightDM.
FWIW, this looks like a QDBus (or even QMetaObject) bug. Yes, it seems so. But what's strange - I looked this up on the Qt bugtracker and there was no report regarding this.... But to me it seems like something that should affect many more projects than just us. And to this bugreport - there are still some issues left - from what I have found out, logging out still works really strange. After creating two sessions and logging from both of them, KDE reports (in a new session) that there are these two open (and lists them as "other" sessions, regardless the fact one of them is on the same VT as the present one). Also reported here: https://bugs.launchpad.net/lightdm/+bug/851612 I found out today these issues belong under LightDM, reporting a new bug 867924 . Regarding this issue, there is only one more minor problem I know of: the "Switch User" dialog lists sessions that are marked as closing. Also removing the Launchpad tracker as I think the problem is in systemd support. I'll see when I fix it. Martin, why did you invert the dependency order of the bugs? I think this one really depends on bug #867924 rather than blocking it. Sorry, Kevin, I did that by accident. Fixed now. kde-workspace-4.9.2-6.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/kde-workspace-4.9.2-6.fc18 Package kde-workspace-4.9.2-6.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing kde-workspace-4.9.2-6.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16735/kde-workspace-4.9.2-6.fc18 then log in and leave karma (feedback). Package kde-workspace-4.9.2-7.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing kde-workspace-4.9.2-7.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16735/kde-workspace-4.9.2-7.fc18 then log in and leave karma (feedback). kde-workspace-4.9.2-7.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |