summaryrefslogtreecommitdiff
path: root/src/ck-session.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-11-04 19:37:23 +0100
committerMichael Biebl <biebl@debian.org>2009-11-04 19:37:23 +0100
commit6f64702386210741d62f3394e27b1b6695dde698 (patch)
tree676906a73270831fbc42be9ea0f267756cb0031d /src/ck-session.c
parent6e7c6dfda732880e6feaef53f8ff0aaf23b4d4d4 (diff)
downloadconsolekit-6f64702386210741d62f3394e27b1b6695dde698.tar.gz
Imported Upstream version 0.4.1upstream/0.4.1
Diffstat (limited to 'src/ck-session.c')
-rw-r--r--src/ck-session.c8
1 files changed, 2 insertions, 6 deletions
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);
}
-