After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793948 - gdm login dialog show wrong active session of user
gdm login dialog show wrong active session of user
Status: RESOLVED DUPLICATE of bug 793609
Product: gdm
Classification: Core
Component: general
3.26.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-01 02:04 UTC by xiaoguang wang
Modified: 2018-03-01 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdm show right active session name (1.25 KB, patch)
2018-03-01 02:26 UTC, xiaoguang wang
none Details | Review

Description xiaoguang wang 2018-03-01 02:04:00 UTC
Reproduce procedure:

1. Install gnome-shell-classic package
2. Create two users, 'test1' and 'test2'
3. user 'test1' login as GNOME session and then logout
4. user 'test2' login as GNOME Classic session then logout
5. restart OS, see gdm login dialog screen
6. click user 'test1' and click session button, active session is 'GNOME', then click Cancel button
7. click user 'test2' and click session button, active session is 'GNOME Classic', then click Cancel button
8. click user 'test1' again and click session button, active session becomes 'GNOME Classic', it should be 'GNOME'
Comment 1 xiaoguang wang 2018-03-01 02:23:21 UTC
In loginDialog.js, use signal 'default-session-name-changed' to set active session name.

In gdm-session.c, in function worker_on_saved_session_name_read, signal 'default-session-name-changed' is not sent out every time, in some condition, signal will not be sent out. I think it's better to send this signal every time to set active session name.
Comment 2 xiaoguang wang 2018-03-01 02:26:19 UTC
Created attachment 369130 [details] [review]
gdm show right active session name
Comment 3 Ray Strode [halfline] 2018-03-01 14:58:40 UTC

*** This bug has been marked as a duplicate of bug 793609 ***