GNOME Bugzilla – Bug 693161
Replace LoginManager:sessionActive with GnomeSession:SessionIsActive
Last modified: 2013-02-08 17:55:59 UTC
Kill some code by using the ConsoleKit/logind abstraction in gnome-session.
Created attachment 235164 [details] [review] Replace LoginManager:sessionActive with GnomeSession:SessionIsActive Gnome session started to track the session's active state a while ago, so use that instead of our own ConsoleKit/logind abstraction in LoginManager.
Created attachment 235165 [details] [review] loginManager: Remove sessionActive property It is unused after switching to GnomeSession:SessionIsActive, so remove it together with shell_session_is_active_for_systemd().
Review of attachment 235164 [details] [review]: Ok
Review of attachment 235165 [details] [review]: Ok
(In reply to comment #3) > Review of attachment 235164 [details] [review]: > > Ok On a second thought, you can remove the use of LoginManager altogether in those modules.
Attachment 235164 [details] pushed as 526a162 - Replace LoginManager:sessionActive with GnomeSession:SessionIsActive Attachment 235165 [details] pushed as e0c5a61 - loginManager: Remove sessionActive property (In reply to comment #5) > On second thought, you can remove the use of LoginManager altogether in those > modules. Good catch, removed.
Created attachment 235519 [details] [review] autorunManager: Define this._session as an instance of GnomeSession
Review of attachment 235519 [details] [review]: Eeeks. The patch is still wrong though, you'll also need to import misc.GnomeSession
Created attachment 235529 [details] [review] autorunManager: Define this._session as an instance of GnomeSession
Review of attachment 235529 [details] [review]: LGTM