session-monitor: fix parsing of ConsoleKit database

The section name is "Session", not "CkSession".  Restore the correct
value, changed by commit 0de60b300e ("session: merge
nm-session-monitor-* modules").

Fixes: 0de60b300e

https://bugzilla.gnome.org/show_bug.cgi?id=772640
(cherry picked from commit db9589f0ce)
This commit is contained in:
Beniamino Galvani 2016-10-12 14:21:27 +02:00
parent edf4bf2f35
commit cfe74bc01a

View file

@ -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);