summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-worker.c
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2014-05-22 11:06:42 +0200
committerLaurent Bigonville <bigon@bigon.be>2014-05-22 16:57:40 +0200
commit574031ae4480b11f026397af940089c0a5887b3c (patch)
treeefb11f8c72385326a526a918595f59ccbd7f3b75 /daemon/gdm-session-worker.c
parentb1a4aee7349877ff73f92a5413b6a8a431704a2b (diff)
downloadgdm-574031ae4480b11f026397af940089c0a5887b3c.tar.gz
Do not build register_ck_session() function if CK is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=730558
Diffstat (limited to 'daemon/gdm-session-worker.c')
-rw-r--r--daemon/gdm-session-worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 8493fbd0..9ba5e893 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,