diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-03-06 18:13:40 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-03-09 11:01:38 -0400 |
commit | cf408335c891b41824f2071ec8433490d735e399 (patch) | |
tree | 242c9716fcf08529d04a62d4ff7b4c8f456b37c1 | |
parent | 355d1ca947c219d2d87d30b60b0690f474a7adb7 (diff) | |
download | gnome-session-cf408335c891b41824f2071ec8433490d735e399.tar.gz |
Fix SessionIsActive property
GsmSystemd emits its cold-plug notify::active signal out of
init(), giving GsmManager no chance to connect its signal handler
in time to catch the initial emission. And even if we did,
the GsmManager handler can only operate once the skeleton object
exists.
Therefore, do our own cold-plug after creating the skeleton.
This is fallout from the GDBus port.
https://bugzilla.gnome.org/show_bug.cgi?id=745762
-rw-r--r-- | gnome-session/gsm-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c index 775873fb..70ef94f8 100644 --- a/gnome-session/gsm-manager.c +++ b/gnome-session/gsm-manager.c @@ -3210,6 +3210,9 @@ register_manager (GsmManager *manager) manager->priv->connection = connection; manager->priv->skeleton = skeleton; + /* cold-plug SessionIsActive */ + on_gsm_system_active_changed (manager->priv->system, NULL, manager); + return TRUE; } |