[gdm] daemon: register ck session at open time, not start time



commit a6016405c7500210fb853f27dfd937fb736c93c2
Author: Ray Strode <rstrode redhat com>
Date:   Wed Aug 1 14:36:14 2012 -0400

    daemon: register ck session at open time, not start time
    
    This is more appropriate. It's also when the systemd session
    is registered, so more consistent.

 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 83b86b6..67584f9 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1747,8 +1747,6 @@ gdm_session_worker_start_session (GdmSessionWorker  *worker,
         pid_t session_pid;
         int   error_code;
 
-        register_ck_session (worker);
-
         gdm_get_pwent_for_name (worker->priv->username, &passwd_entry);
         if (worker->priv->is_program_session) {
                 g_debug ("GdmSessionWorker: opening session for program '%s'",
@@ -1907,6 +1905,8 @@ gdm_session_worker_open_session (GdmSessionWorker  *worker,
 #endif
 
 #ifdef WITH_CONSOLE_KIT
+        register_ck_session (worker);
+
         if (session_id == NULL) {
                 session_id = get_ck_session_id (worker);
         }



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