summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvailo Monev <xakepa10@gmail.com>2015-08-24 20:18:50 +0300
committerIvailo Monev <xakepa10@gmail.com>2015-08-24 20:23:05 +0300
commitf848c1de94ef2f5ae7d53358d30e26400a69d3d4 (patch)
treeed91073dc669e92de389f517e4a62897c1070d7e
parent1c6b5b2b84da8ee94c5bb12bc96a99caba1e16c9 (diff)
downloadConsoleKit2-f848c1de94ef2f5ae7d53358d30e26400a69d3d4.tar.gz
Filter out the kdm user
-rw-r--r--src/ck-manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ck-manager.c b/src/ck-manager.c
index 66da8b2..4a6e511 100644
--- a/src/ck-manager.c
+++ b/src/ck-manager.c
@@ -1111,9 +1111,10 @@ session_is_real_user (CkSession *session,
username = get_user_name (uid);
- /* filter out GDM/SDDM user */
+ /* filter out GDM/SDDM/KDM user */
if (g_strcmp0 (username, "gdm") == 0 ||
- g_strcmp0 (username, "sddm") == 0) {
+ g_strcmp0 (username, "sddm") == 0 ||
+ g_strcmp0 (username, "kdm") == 0) {
ret = FALSE;
goto out;
}