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 683400 - Misc fixes to session mode and component system
Misc fixes to session mode and component system
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-05 10:51 UTC by Giovanni Campagna
Modified: 2012-09-05 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't start new components when activating the screen-shield in gdm (1.36 KB, patch)
2012-09-05 10:51 UTC, Giovanni Campagna
committed Details | Review
SessionMode: add polkit to gdm session (844 bytes, patch)
2012-09-05 10:51 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2012-09-05 10:51:23 UTC
See patches
Comment 1 Giovanni Campagna 2012-09-05 10:51:39 UTC
Created attachment 223512 [details] [review]
Don't start new components when activating the screen-shield in gdm

Previous code was activating the networkAgent and telepathyClient
in the lock-screen, irrespective of the previous mode.
Now it checks if the session mode is locked down, and if so it refuses
to start new components.
Comment 2 Giovanni Campagna 2012-09-05 10:51:47 UTC
Created attachment 223513 [details] [review]
SessionMode: add polkit to gdm session

It's needed to shutdown when other users are logged in or inhibitors are
active.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:11:14 UTC
Review of attachment 223513 [details] [review]:

I'm sort of glad a "fix" is just this easy now. OK.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:12:02 UTC
Review of attachment 223512 [details] [review]:

um, why was it activating the network agent and telepathy client in the lock screen? We have a mode for the lock screen, and it turns all of that off, right?
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:15:19 UTC
Also, don't we want the telepathy client in the lock screen? Just locking your computer shouldn't log you off of IM.
Comment 6 Giovanni Campagna 2012-09-05 13:38:48 UTC
(In reply to comment #4)
> Review of attachment 223512 [details] [review]:
> 
> um, why was it activating the network agent and telepathy client in the lock
> screen? We have a mode for the lock screen, and it turns all of that off,
> right?

Maybe the commit message wasn't clear enough, but I referred to the gdm lock screen (the one that falls after 10 minutes in the greeter). They share the same session mode, so the network agent and telepathy client are activated, as they're in components list.
Obviously for the user lock screen we want telepathy to be active, that's kind of the point of having notifications there.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:51:52 UTC
(In reply to comment #6)
> Maybe the commit message wasn't clear enough, but I referred to the gdm lock
> screen (the one that falls after 10 minutes in the greeter). They share the
> same session mode, so the network agent and telepathy client are activated, as
> they're in components list.
> Obviously for the user lock screen we want telepathy to be active, that's kind
> of the point of having notifications there.

I did not even know that existed.
Comment 8 Giovanni Campagna 2012-09-05 13:54:31 UTC
It's not the first time I hear that from you :)
So, how's the patch then?
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:55:23 UTC
I'm a bit disappointed in it, but my other thoughts were awful, so, good to go.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-09-05 13:55:46 UTC
Review of attachment 223512 [details] [review]:

Sigh. Fine.
Comment 11 Giovanni Campagna 2012-09-05 14:14:22 UTC
Attachment 223512 [details] pushed as f957ae7 - Don't start new components when activating the screen-shield in gdm
Attachment 223513 [details] pushed as 0725a7d - SessionMode: add polkit to gdm session