lightdm writes XDISPLAY instead of tty device name to utmp record
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Fix Released
|
Medium
|
Unassigned | ||
1.10 |
New
|
Undecided
|
Unassigned | ||
1.14 |
New
|
Undecided
|
Unassigned | ||
1.16 |
New
|
Undecided
|
Unassigned | ||
lightdm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
unity-control-center (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Until now, I've been using good old gdm-2.20.11 and wanted to switch to lightdm-1.12.1. If you list users logged in via the 'w' or 'who' command, it shows you who is logged in and what they are doing. Especially, on which tty. Example:
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
user tty9 03Oct14 16days 1:52m 0.01s /bin/sh /etc/xdg/
Also, 'who' gives this information:
user tty9 Oct 3 22:34 (:20)
However, lightdm does not follow that tradition. Instead, it prints :0 instead of the actual tty, and something weird for other values (like ?xdm? instead of the idle value etc.)
'w':
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
user :0 19:50 ?xdm? 23.82s 0.01s /bin/sh /etc/xdg/
Note: :0 is not tty, it is DISPLAY env.
'who':
user :0 2014-10-12 19:50 (:0)
The same for this one. I wonder, is this a bug (to me it seems so, because for every other program the correct values are reported)?
It is a problem for me, because I have written scripts for automation etc. that parse w and who output to determine which tty is in use by which DISPLAY.
Related branches
- Robert Ancell: Approve
-
Diff: 15 lines (+4/-2)1 file modifiedpanels/user-accounts/um-history-dialog.c (+4/-2)
Changed in lightdm: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in lightdm: | |
milestone: | none → 1.17.6 |
Changed in lightdm (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in lightdm: | |
status: | Fix Committed → Fix Released |
Changed in unity-control-center (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
This is a bug in lightdm which should be fixed. tty line and idle time are not shown correctly. XDISPLAY should not be written to ut_line.