From db9589f0ceb099d49439acf257f9ef449aec2c27 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 --- 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 2f791bac4e..5000f9060d 100644 --- a/src/nm-session-monitor.c +++ b/src/nm-session-monitor.c @@ -168,7 +168,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);