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 760415 - session: Add a FIXME
session: Add a FIXME
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-11 00:26 UTC by Michael Catanzaro
Modified: 2016-01-12 15:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
session: Add a FIXME (898 bytes, patch)
2016-01-11 00:26 UTC, Michael Catanzaro
none Details | Review
session: Improve a comment and remove useless code (1.96 KB, patch)
2016-01-12 04:05 UTC, Michael Catanzaro
committed Details | Review

Description Michael Catanzaro 2016-01-11 00:26:02 UTC
To explain why the code is not doing the thing that the comment above
says it is doing.
Comment 1 Michael Catanzaro 2016-01-11 00:26:05 UTC
Created attachment 318683 [details] [review]
session: Add a FIXME
Comment 2 Ray Strode [halfline] 2016-01-11 15:23:49 UTC
Review of attachment 318683 [details] [review]:

It's a little confusing, but both NEW_VT and LOGIND_MANAGED rely on logind for managing the session.  The difference is that in the case of NEW_VT, gdm will jump to the VT first, before starting the session, in a flicker free way.
With LOGIND_MANAGED, GDM doesn't get involved at all and just lets logind/Xorg handle VT management.

The reason GDM can't use LOGIND_MANAGED for Xorg, is an Xorg bug. It switches VTs before issuing the logind TakeControl() call, so it can potentially flicker. Anyway, I agree the comment that's there isn't detailed enough and that it's
confusing, but I think that comment should give fixed instead of adding a new one that still leaves things pretty mysterious.
Comment 3 Michael Catanzaro 2016-01-12 04:05:17 UTC
Created attachment 318835 [details] [review]
session: Improve a comment and remove useless code

Here's my stab at improving this comment... I also got rid of the entire condition for now, since it's not doing anything.
Comment 4 Ray Strode [halfline] 2016-01-12 15:56:27 UTC
Thanks, the comment was much better, but I still wasn't satisified,
so I redid it from scratch, and since we're collapsing down some of
the different cases into one codepath, I consolidated all of them.