[gdm] daemon: don't use GetCurrentSession



commit d7127cd4a2e420677ed3966451cd04f5e4cd7b2d
Author: Ray Strode <rstrode redhat com>
Date:   Wed Aug 1 14:43:27 2012 -0400

    daemon: don't use GetCurrentSession
    
    GetCurrentSession is a bit fragile, and requires ConsoleKit
    to do extra work inspecting environments to deliver its answer.
    
    This commit changes get_ck_session_id to use the much cheaper
    GetSessionForCookie call.

 daemon/gdm-session-worker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 67584f9..0e8977e 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -366,8 +366,8 @@ get_ck_session_id (GdmSessionWorker *worker)
                                              "org.freedesktop.ConsoleKit",
                                              "/org/freedesktop/ConsoleKit/Manager",
                                              "org.freedesktop.ConsoleKit.Manager",
-                                             "GetCurrentSession",
-                                             NULL,
+                                             "GetSessionForCookie",
+                                             g_variant_new ("(s)", worker->priv->session_cookie),
                                              G_VARIANT_TYPE ("(o)"),
                                              G_DBUS_CALL_FLAGS_NONE,
                                              -1,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]