When I'm logged in and have a terminal window open, I get:

$ ck-list-sessions
Session2:
        unix-user = '1000'
        realname = 'Douglas Peale'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-10-23T02:31:47.631922Z'
        login-session-id = '4294967295'

When I'm logged in and have no windows open I get the same thing.

When I'm logged out I get:

$ ck-list-sessions
Session4:
        unix-user = '117'
        realname = 'Light Display Manager'
        seat = 'Seat1'
        session-type = 'LoginWindow'
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-10-23T03:18:26.759967Z'
        login-session-id = '4294967295'

I'm not sure how I can reliably use that to determine that no user is
logged in.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/875817

Title:
  who -q no longer counts gui users

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/875817/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to