From 863d10bcb08d5cbc959d817a0faed1d2a55d2869 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Thu, 1 Nov 2012 13:58:12 +0100 Subject: [PATCH 4/4] accountsservice: User login/logout times for x-sessions only https://bugzilla.gnome.org/show_bug.cgi?id=681772 --- src/daemon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/daemon.c b/src/daemon.c index 869ffbb..fa672f4 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -285,6 +285,11 @@ entry_generator_wtmp (GHashTable *users, continue; } + /* We want only x-sessions records */ + if (g_strrstr (wtmp_entry->ut_line, ":") == NULL) { + continue; + } + if (!g_hash_table_lookup_extended (login_hash, wtmp_entry->ut_user, &key, &value)) { -- 1.7.11.7