ConsoleKit documentation needed

Ray Strode halfline at gmail.com
Sat Aug 14 05:40:15 UTC 2010


Hi,

On Fri, Aug 13, 2010 at 4:17 PM, Christoph Wickert
<christoph.wickert at googlemail.com> wrote:
> What are they doing and how is ck-launch-session different from ck-xinit-session?
The differences are extremely minor.  The latter was written first to
fill a specific need for fedora and was stuffed in the xorg-x11-xinit
package, while the former is what ended up making its way upstream.
They do the same thing.

> The background of this question is that there are problems accessing
> removable media in LXDE and Xfce when logging in in runlevel 3 and then
> using startx. I know I can fix these problems by executing startlxde or
> startxfce4 through ck-launch-session, but honestly I have no idea what
> I'm doing.
I don't think you should need to do that.  ck-xinit-session is run
automatically by /etc/X11/xinit/xinitrc

> What is the recommended way to open and close a ConsoleKit session when
> logging in in runlevel 3?
pam_ck_connector does it at login time (for the terminal session) and
then xinitrc does it at startx time.

> Should this be done in the scripts that strart the desktop environment?
No.  The only time it should be run manually is if the user is
explicitly trying to bypass the custom distro machinery with a
~/.xsession file or similar.  In that case, they need to do it
themselves (or not, depending on why they're choosing to use
~/.xsession instead of ~/.Xclients in the first place)

For most cases you shouldn't need to do anything.  I wonder if
something is clearing your environment? That program sets an
environment variable called XDG_SESSION_COOKIE that needs to make its
way into the session.

--Ray


More information about the devel mailing list