Bug 886442

Summary: LightDM tracks user sessions unreliably
Product: [Fedora] Fedora Reporter: Martin Bříza <mbriza>
Component: lightdmAssignee: Rex Dieter <rdieter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: christoph.wickert, dan.mashal, gregor, kevin, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-05 10:38: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:
Attachments:
Description Flags
The proposed fix none

Description Martin Bříza 2012-12-12 10:03:50 UTC
Created attachment 662210 [details]
The proposed fix

Description of problem:
LightDM doesn't track which session is currently active properly. It relies on D-Bus calls to itself, not the actual active screen.
I'm attaching a patch to fix this issue.
I've opened a new bug because the previous one was for systemd issues and this is not related to systemd at all.

Version-Release number of selected component (if applicable):
lightdm-1.4.0-1.fc18.x86_64

How reproducible:
Always
Steps to Reproduce:
1. Have an installation with two users, let's say test1 and test2
2. Log in as test1
3. Switch session, create a new one with test2 logged in
4. Switch session back to test1 (the most reliable way to reproduce the bug is using ctrl+alt+f1)
5. Log test1 out

Actual results:
Screen gets stuck, is black, only way out is alt+ctrl+f2

Expected results:
LightDM login screen appearing.

Additional info:
I also sent the patch to the upstream's mailing list.

Comment 1 Martin Bříza 2012-12-12 10:09:07 UTC
Uhm, sorry about the tabs in the patch, I must have forgotten to switch mode in the editor

Comment 2 Martin Bříza 2013-01-31 17:04:50 UTC
The issue was fixed by this commit in the Launchpad repository:
http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/1569

Comment 3 Dan Mashal 2013-06-05 09:04:59 UTC
I can reproduce this in a different way in MATE. I created a new user, switched to it but I could not switch back to the original user. I could only logout from the 2nd user.

1) Adduser user2
2) switch to user2
3) system -> logout of user2
4) No switch user option.

Is this fixed in 1.7.0?

Comment 4 Martin Bříza 2013-06-05 10:38:25 UTC
Yes, it is.
I quickly tested it and it's okay even in MATE. Didn't notice 1.7.0 hit the rawhide repositories before but I think I can close this report now.