From 6f64702386210741d62f3394e27b1b6695dde698 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 4 Nov 2009 19:37:23 +0100 Subject: Imported Upstream version 0.4.1 --- src/ck-session.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/ck-session.c') diff --git a/src/ck-session.c b/src/ck-session.c index 4009ee1..d8db9dd 100644 --- a/src/ck-session.c +++ b/src/ck-session.c @@ -399,7 +399,6 @@ ck_session_set_active (CkSession *session, if (session->priv->active != active) { session->priv->active = active; - ck_session_run_programs (session, "session_active_changed"); g_signal_emit (session, signals [ACTIVE_CHANGED], 0, active); } @@ -1285,6 +1284,8 @@ ck_session_run_programs (CkSession *session, extra_env[n++] = g_strdup_printf ("CK_SESSION_IS_LOCAL=%s", session->priv->is_local ? "true" : "false"); extra_env[n++] = NULL; + g_assert(n <= G_N_ELEMENTS(extra_env)); + ck_run_programs (SYSCONFDIR "/ConsoleKit/run-session.d", action, extra_env); ck_run_programs (PREFIX "/lib/ConsoleKit/run-session.d", action, extra_env); @@ -1306,10 +1307,6 @@ ck_session_dump (CkSession *session, group_name, "seat", NONULL_STRING (session->priv->seat_id)); - g_key_file_set_string (key_file, - group_name, - "cookie", - NONULL_STRING (session->priv->cookie)); if (session->priv->session_type != NULL) { g_key_file_set_string (key_file, group_name, @@ -1362,4 +1359,3 @@ ck_session_dump (CkSession *session, g_free (group_name); } - -- cgit v1.2.3