[gdm/wip/slave-connection: 1/36] worker: fix up consolekit code



commit f0310cb7986dd0f9d24854786b8e1a511fdb8cf3
Author: Ray Strode <rstrode redhat com>
Date:   Thu Jul 12 18:19:42 2012 -0400

    worker: fix up consolekit code
    
    ck-connector was recently dropped and replaced with raw gdbus
    calls.
    
    It had a small bug in it's OpenSessionWithParameters call that
    meant it never got the right return value.
    
    This commit fixes that.

 daemon/gdm-session-worker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index b9e3a69..96cf87a 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -281,7 +281,7 @@ open_ck_session (GdmSessionWorker  *worker)
                 goto out;
         }
 
-        worker->priv->session_cookie = g_variant_dup_string (reply, NULL);
+        g_variant_get (reply, "(s)", &worker->priv->session_cookie);
 
         g_variant_unref (reply);
 



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