Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257763 - sys-auth/consolekit Xsession-script to start launch-session on login
Summary: sys-auth/consolekit Xsession-script to start launch-session on login
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 09:58 UTC by Tiziano Müller (RETIRED)
Modified: 2009-02-28 14:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2009-02-05 09:58:36 UTC
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...
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-05 10:22:22 UTC
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.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-15 21:58:34 UTC
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
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-15 22:38:11 UTC
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.
Comment 4 James Le Cuirot gentoo-dev 2009-02-28 02:03:50 UTC
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?
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2009-02-28 09:12:12 UTC
Did you set the consolekit USE-flag for sys-auth/pambase ?
Comment 6 James Le Cuirot gentoo-dev 2009-02-28 11:47:31 UTC
Yes and I did update the configuration files. pam_ck_connector.so is present in /etc/pam.d/system-local-login.
Comment 7 James Le Cuirot gentoo-dev 2009-02-28 11:56:10 UTC
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)
Comment 8 Tiziano Müller (RETIRED) gentoo-dev 2009-02-28 13:47:42 UTC
hmm, does the /var/run/console directory exist?
Comment 9 James Le Cuirot gentoo-dev 2009-02-28 14:01:45 UTC
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.