GNOME Bugzilla – Bug 692253
user-accounts: empty login history window
Last modified: 2013-06-26 09:14:47 UTC
Created attachment 234068 [details] login-history.txt gnome-control-center 3.7.4 with gnome-settings-daemon 3.7.4 and accountsservice 0.6.30 on Ubuntu 13.04 Alpha The new Login History window in User Accounts is empty (the dialog displays fine; there just aren't any login entries). It doesn't matter whether I unlock the User Accounts panel. I am attaching the output of: dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.DBus.Properties.Get string:'org.freedesktop.Accounts.User' string:'LoginHistory'
Created attachment 234205 [details] [review] Fix empty login history Ubuntu has obviously different wtmp records then Fedora. We should to enable also "tty" wtmp records to fix this bug. These "tty" records are used for terminal access. It'll be probably necessary to make some design changes of history dialog, because if somebody is logged in multiple times (e.g. using terminal), login history should look like probably: 15:00 Session Ended 14:00 Session Ended 13:00 Session Started 12:00 Session Started ...but it isn't clear which session ended in what time. However currently it looks like: 15:00 Session Ended 13:00 Session Started 14:00 Session Ended 12:00 Session Started ...what is also obviously confusing.
Review of attachment 234205 [details] [review]: hmm ::: panels/user-accounts/um-history-dialog.c @@ +205,3 @@ /* Display only x-sessions */ + if (!g_str_has_prefix (history.type, ":") && + !g_str_has_prefix (history.type, "tty")) { So the comment above says "Display only x-sessions" but now we're not going to display only X sesssions, right?
Jeremy, could this problem be because LightDM is writing out its wtmp entries' ut_line field in a way that doesn't include display information? If so, could we get LightDM changed?
Created attachment 238886 [details] [review] Fix empty login history Fixed comment to be more precise, but change in LightDM would be probably better...
Review of attachment 238886 [details] [review]: Looks good.
The login history window is no longer empty here with gnome-control-center 3.8.2. I believe the change is because Ubuntu 13.10 (or 13.04 with the GNOME3 Staging PPA) now uses logind. I use GDM.
This was commited for 3.9.2 , but not merged to gnome-3-8 branch are there any reason, I will try and report if there are issues with it ... Regards
(In reply to comment #7) > This was commited for 3.9.2 , but not merged to gnome-3-8 branch are there any > reason, I will try and report if there are issues with it ... There isn't any reason, I've commited it now for gnome-3-8... commit 0925d95ee75e3351366b852999ddcfc3ede22cf9