GNOME Bugzilla – Bug 686556
Provide a singleton SessionManager proxy object
Last modified: 2012-10-22 08:10:52 UTC
Created attachment 226913 [details] [review] patch Many plugins were creating these on their own, with ugly async code. It seems much more straightforward and efficient to get a proxy once, and keep it around for everybody to use. At the same time, rely on cached properties for the session name, instead of manual Get roundtrips. This requires a fix to make GetAll work for the SessionManager interface.
Review of attachment 226913 [details] [review]: This need to be split up in a patch for the daemon, and patches for each of the plugins to use that new API. I can take care of that tomorrow.
Created attachment 226959 [details] [review] main: Provide a singleton SessionManager proxy object Many plugins were creating these on their own, with ugly async code. It seems much more straightforward and efficient to get a proxy once, and keep it around for everybody to use.
Created attachment 226960 [details] [review] main: Use new SessionManager singleton
Created attachment 226961 [details] [review] updates: Use new SessionManager singleton
Created attachment 226962 [details] [review] smartcard: Use new SessionManager singleton
Created attachment 226963 [details] [review] power: Use new SessionManager singleton
Created attachment 226964 [details] [review] keyboard: Use new SessionManager singleton
Created attachment 226965 [details] [review] background: Use new SessionManager singleton
Created attachment 226966 [details] [review] a11y-keyboard: Use new SessionManager singleton
Created attachment 226967 [details] [review] media-keys: Use new SessionManager singleton
Attachment 226959 [details] pushed as 58d38a3 - main: Provide a singleton SessionManager proxy object Attachment 226960 [details] pushed as 00ab478 - main: Use new SessionManager singleton Attachment 226961 [details] pushed as db2312a - updates: Use new SessionManager singleton Attachment 226962 [details] pushed as 75c684b - smartcard: Use new SessionManager singleton Attachment 226963 [details] pushed as d54a86a - power: Use new SessionManager singleton Attachment 226964 [details] pushed as e0f87ee - keyboard: Use new SessionManager singleton Attachment 226965 [details] pushed as 35598d8 - background: Use new SessionManager singleton Attachment 226966 [details] pushed as d8a9e0a - a11y-keyboard: Use new SessionManager singleton Attachment 226967 [details] pushed as e18eb3a - media-keys: Use new SessionManager singleton