How should I determine if a user is logged in graphically while lightdm is running?
- by Jack
I want to know if someone is logged into a local X-session. In the past I looked at the output of ck-list-sessions. The output looked something like this:
Session12:
unix-user = '[redacted]'
realname = '[redacted]'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty8'
…