who -q no longer counts gui users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The "checklogin.sh" script on this page: http://
On 11.04 this worked fine.
On 11.10, my system shuts down 10 minutes after booting unless I open a terminal window.
On opening a terminal window and running "who -q" I get:
$ who -q
dpeale
# users=1
I used to get "users=2". The gui user is not counted anymore.
This is true of both Unity and Gnome GUIs
The 'w' command also has the same bug (I've never been able to figure out what package that comes from). It also has another bug. If you use one of the ctl-alt-Fx screens, login, and then logout, it continues to count that screen as logged in.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: coreutils 8.5-1ubuntu6
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sun Oct 16 09:24:27 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (0 days ago)
Thank you for opening this bug and helping make (Myth)Ubuntu better. This is not a bug on 'who'; the only thing 'who' does is read /var/run/utmp, and report based on it. What happens is running programs must use the utmp protocol to update utmp -- so there is at least one such program on 11.10 that is *not* doing that (and this program was the one that populated utmp so that 'checklogin.sh' was working correctly.
As such, I have reset the package to 'mythtv'.