After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725053 - Login's history empty on Ubuntu (doesn't list "pts" type sessions)
Login's history empty on Ubuntu (doesn't list "pts" type sessions)
Status: RESOLVED INCOMPLETE
Product: gnome-control-center
Classification: Core
Component: User Accounts
git master
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-24 11:18 UTC by Sebastien Bacher
Modified: 2020-06-25 20:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
list "pts" sessions (1011 bytes, patch)
2014-02-24 11:18 UTC, Sebastien Bacher
none Details | Review

Description Sebastien Bacher 2014-02-24 11:18:14 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?
Comment 1 Sebastien Bacher 2014-02-24 11:18:47 UTC
Created attachment 270108 [details] [review]
list "pts" sessions
Comment 2 Ondrej Holy 2014-02-27 12:50:37 UTC
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
Comment 3 André Klapper 2020-06-25 20:55:55 UTC
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!