From cfe74bc01a06b598a5bef3d85409e09ca85c0081 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 12 Oct 2016 14:21:27 +0200 Subject: [PATCH] session-monitor: fix parsing of ConsoleKit database The section name is "Session", not "CkSession". Restore the correct value, changed by commit 0de60b300ed6 ("session: merge nm-session-monitor-* modules"). Fixes: 0de60b300ed6cc0fc94c742396112b1274989371 https://bugzilla.gnome.org/show_bug.cgi?id=772640 (cherry picked from commit db9589f0ceb099d49439acf257f9ef449aec2c27) --- src/nm-session-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c index 8ddb09cbe3..fb656c6b92 100644 --- a/src/nm-session-monitor.c +++ b/src/nm-session-monitor.c @@ -178,7 +178,7 @@ ck_load_cache (GHashTable *cache) guint uid = G_MAXUINT; CkSession session = { .active = FALSE }; - if (!g_str_has_prefix (groups[i], "CkSession ")) + if (!g_str_has_prefix (groups[i], "Session ")) continue; uid = g_key_file_get_integer (keyfile, groups[i], "uid", &error);