This is more a check request than a bug and if you think it doesn't apply you can simply close it as wontfix or invalid: While doing some research for bug #257761 I discovered that other distros install a file sourced by Xsession to launch ck-launch-session upon login (in the http://archive.ubuntu.com/ubuntu/pool/main/c/consolekit/consolekit_0.3-0ubuntu3.diff.gz file it's the debian/90consolekit script). Do we want this as well? Because atm I don't see how for example gdm interacts with consolekit at all...
pam magic. gdm goes through pam stack while logging in and the pam_ck_connector activates a new session. I'll double check what this script does though as it might be needed for people starting X by hand.
ok, upstream also applies some patch to the pam connector so it doesn't start a consolekit session if the nox11 option is passed to it. Adding that as well to 0.2.10-r1
added the script and the relevant pam module patch since upstream accepted it but this is disabled by default so as to not brake current users. There's a proper ewarn message though. Thanks for reporting.
I'm using slim with PAM enabled. I have consolekit-0.3.0 installed and the consolekit USE flag is also enabled. I've got consolekit starting on bootup but it still doesn't start a session when I log into an X session - ck-list-sessions is empty. I've tried making /etc/X11/xinit/xinitrc.d/90-consolekit executable but that hasn't helped. Am I missing something?
Did you set the consolekit USE-flag for sys-auth/pambase ?
Yes and I did update the configuration files. pam_ck_connector.so is present in /etc/pam.d/system-local-login.
I just tried logging in at the console and that doesn't create a session either. PAM does appear to be active though, I get this... Feb 28 11:53:34 [login] pam_unix(login:session): session opened for user chewi by LOGIN(uid=0)
hmm, does the /var/run/console directory exist?
Yeah but it's empty, even when I'm logged in at the console. I should add that ConsoleKit does work but I need to launch the session myself with ck-launch-session.