Consolekit cannot lookup lxsession

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Locked
rde42
Posts: 1
Joined: Sun May 14, 2017 9:15 pm
Contact:

Consolekit cannot lookup lxsession

Post by rde42 »

I'm using lxsession 0.5.3 on FreeBSD, together with ConsoleKit 0.4.5.

I've upgraded the system; previously I was using lxsession 0.4.6.

When I start LXDE, I get a blank graphical screen, and a dialog box that says:

GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process 'xxxx'

xxxx is the process number for lxsession.

I start LXDE with startx and .xinitrc. This appears to be because consolekit is looking for XDG_SESSION_COOKIE, but there's nothing in lxsession about that.

If I acknowledge the dialog box, LXDE starts OK, as far as I can see. But how do I fix this please?
maddoctor
Posts: 1
Joined: Tue Sep 19, 2017 1:43 am

Re: Consolekit cannot lookup lxsession

Post by maddoctor »

I found a solution. Edit /etc/lxdm/Xsession and change (near the bottom):

exec -l bash -c "$LXSESSION"

to

ck-launch-session "$LXSESSION"
Locked