[Bug 535521] Re: ck-launch-session doesn't set x11-display-device
Alkis Georgopoulos
535521 at bugs.launchpad.net
Mon Dec 23 12:07:41 UTC 2013
Since Ubuntu switched to logind, I don't think this is ever going to get
fixed.
** Changed in: consolekit (Ubuntu)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to consolekit in Ubuntu.
https://bugs.launchpad.net/bugs/535521
Title:
ck-launch-session doesn't set x11-display-device
Status in “consolekit” package in Ubuntu:
Won't Fix
Status in “ltsp” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: consolekit
consolekit version: 0.4.1-3ubuntu1 (Lucid alpha3)
In /etc/X11/Xsession.d/90consolekit there's a call to ck-launch-session which registers a session if one hasn't been registered yet.
This is true for example in LTSP, which uses LDM instead of GDM.
The problem is that ck-launch-session doesn't set x11-display-device, so ck-list-sessions for that session contains:
active = FALSE
x11-display = ':0'
x11-display-device = ''
display-device = '/dev/pts/0'
If I replace that ck-launch-session call with a python script of my own, which calls OpenSessionWithParameters with
params.append (("x11-display-device", dbus.String ('/dev/tty7', variant_level=1)))
instead, then the session correctly contains:
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
Maybe the problem is that ck-launch-session doesn't have the necessary
permissions to call `fgconsole` to check the active tty, and so it
should find some non privileged way to do it?
Of course, the end result is that PolicyKit doesn't work as expected,
since the session is considered not active, so we can't mount drives
etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/535521/+subscriptions
More information about the foundations-bugs
mailing list