[gdm] Do not build register_ck_session() function if CK is disabled



commit 574031ae4480b11f026397af940089c0a5887b3c
Author: Laurent Bigonville <bigon bigon be>
Date:   Thu May 22 11:06:42 2014 +0200

    Do not build register_ck_session() function if CK is disabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730558

 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 8493fbd..9ba5e89 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1570,6 +1570,7 @@ gdm_session_worker_get_environment (GdmSessionWorker *worker)
         return (const char * const *) pam_getenvlist (worker->priv->pam_handle);
 }
 
+#ifdef WITH_CONSOLE_KIT
 static void
 register_ck_session (GdmSessionWorker *worker)
 {
@@ -1579,7 +1580,6 @@ register_ck_session (GdmSessionWorker *worker)
         }
 #endif
 
-#ifdef WITH_CONSOLE_KIT
         open_ck_session (worker);
 
         if (worker->priv->session_cookie != NULL) {
@@ -1587,8 +1587,8 @@ register_ck_session (GdmSessionWorker *worker)
                                                              "XDG_SESSION_COOKIE",
                                                              worker->priv->session_cookie);
         }
-#endif
 }
+#endif
 
 static gboolean
 run_script (GdmSessionWorker *worker,


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