Bug 684926 - Switch Session, just goes to the lock screen.
Switch Session, just goes to the lock screen.
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
3.6.x
Other Linux
: Normal major
: ---
Assigned To: GDM maintainers
GDM maintainers
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-09-27 02:49 UTC by darkxst
Modified: 2012-09-28 16:44 UTC (History)
5 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
session.log (7.24 KB, text/x-log)
2012-09-27 04:11 UTC, darkxst
  Details
gdm slave log (90.87 KB, text/x-log)
2012-09-27 04:25 UTC, darkxst
  Details
libdgm: correct invalid g_variant format string (966 bytes, patch)
2012-09-28 00:34 UTC, darkxst
none Details | Diff | Review
libgdm: correct invalid g_variant format string (966 bytes, patch)
2012-09-28 01:04 UTC, darkxst
committed Details | Diff | Review

Description darkxst 2012-09-27 02:49:43 UTC
On a single user, Multi Session system. Clicking on "Switch Session" in the user Menu, just drops to the lock screen (i.e. you get exactly the same result as you do when you click "Lock" in the user Menu) and no way to actually switch session.
Comment 1 darkxst 2012-09-27 04:11:31 UTC
Created attachment 225240 [details]
session.log
Comment 2 darkxst 2012-09-27 04:12:43 UTC
On a Multi-user setup, "Switch User" only works the first time, after that it
also drops straight to the lock screen, rather than the switch user greeter.
Comment 3 darkxst 2012-09-27 04:25:21 UTC
Created attachment 225241 [details]
gdm slave log
Comment 4 Matthias Clasen 2012-09-27 23:46:02 UTC
Is this a systemd system ?

If so, can you show the output of loginctl list-sessions and loginctl session-status for the gdm and user sessions ? I think what might be happening here is that the gdm session lingers around on the same vt as your user session, so when you initiate user switching, gdm activates the ghost gdm session on the same vt.
Comment 5 darkxst 2012-09-28 00:34:29 UTC
Created attachment 225304 [details] [review]
libdgm: correct invalid g_variant format string

User switching is broken on consoleKit systems where there is an active
login session. This is due to this invalid g_variant format specifier.
Comment 6 darkxst 2012-09-28 00:57:38 UTC
I am on a console Kit system.

That patch fixes the problem of dropping to lock screen rather than the gdm login screen.

However "Switch Session" on a single user, multi Session system is still flawed. What happens now is, clicking 'switch user' takes you to the gdm login screen, then click on the username and you login back to the previous session where you started.
Comment 7 darkxst 2012-09-28 00:59:57 UTC
I am on a console Kit system.

That patch fixes the problem of dropping to lock screen rather than the gdm login screen.

However "Switch Session" on a single user, multi Session system is still flawed. What happens now is, clicking 'switch user' takes you to the gdm login screen, then click on the username and you login back to the previous session where you started.
Comment 8 darkxst 2012-09-28 01:04:34 UTC
Created attachment 225305 [details] [review]
libgdm: correct invalid g_variant format string

User switching is broken on consoleKit systems where there is an active
login session. This is due to this invalid g_variant format specifier.
Comment 9 Ray Strode [halfline] 2012-09-28 15:01:07 UTC
Review of attachment 225305 [details] [review]:

ugh, copy-and-paste fail, probably. Thanks for the patch.
Comment 10 Ray Strode [halfline] 2012-09-28 15:01:07 UTC
Review of attachment 225305 [details] [review]:

ugh, copy-and-paste fail, probably. Thanks for the patch.
Comment 11 Ray Strode [halfline] 2012-09-28 15:02:14 UTC
Attachment 225305 [details] pushed as 1e72815 - libgdm: correct invalid g_variant format string
Comment 12 Matthias Clasen 2012-09-28 16:44:08 UTC
The 'switch session' problem is something else: bug 685062

Note You need to log in before you can comment on or make changes to this bug.