GNOME Bugzilla – Bug 725053
Login's history empty on Ubuntu (doesn't list "pts" type sessions)
Last modified: 2020-06-25 20:55:55 UTC
The current code lists only session with a type starting with ":" or "tty", or on Ubuntu/lightdm our graphical sessions have a type starting with "pts". Could that one be added to the list?
Created attachment 270108 [details] [review] list "pts" sessions
Filtering wtmp records by ut_line is really unhappy. We show x-sessions logins ":" and terminal logins "tty". I don't think it is good idea to allow "pts" records generally, because every opened terminal emulator (and some other applications) produce those records. Users will be confused, why is there too many logins. See may records for one day: oholy19 pts/7 :0 Wed Feb 19 17:37 - 14:45 (21:07) oholy19 pts/7 :0 Wed Feb 19 15:33 - 17:14 (01:41) oholy19 pts/8 :0 Wed Feb 19 15:29 - 15:30 (00:00) oholy19 pts/7 :0 Wed Feb 19 15:29 - 15:30 (00:01) oholy19 pts/6 :0 Wed Feb 19 15:28 - 17:28 (1+02:00) oholy19 pts/5 :0 Wed Feb 19 15:27 - 17:28 (1+02:00) oholy19 pts/0 :0 Wed Feb 19 14:43 - 17:28 (1+02:44) oholy19 pts/4 :0 Wed Feb 19 14:10 - 14:43 (00:33) oholy19 pts/2 :0 Wed Feb 19 13:21 - 17:28 (1+04:06) oholy19 pts/1 :0 Wed Feb 19 13:04 - 17:28 (1+04:23) oholy19 pts/0 :0 Wed Feb 19 12:53 - 14:43 (01:49) oholy19 :0 :0 Wed Feb 19 12:35 - 17:28 (1+04:52) (unknown :0 :0 Wed Feb 19 12:31 - 12:35 (00:04) reboot system boot 3.12.10-300.fc20 Wed Feb 19 12:30 - 17:28 (1+04:58) We allowed "tty" before some time due to lightdm (see Bug 692253). Are you sure logindm doesn't produce "tty" records? What version do you have? Could you provide output of the "last" command? The "tty" records should be written according the source code: http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/view/head:/src/session-child.c#L595
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!