Consolekit

Introduce yourself, create test postings or talk nonsense
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Consolekit

Post by GJones »

Is it just me or are Slackware and its descendants the only distros on which Consolekit works properly?

- Debian Squeeze and Debian Testing: broken
- Arch Linux: broken
- Ubuntu: broken
- Fedora: broken (or rather systemd appears not to handle CLI logins properly)
- Gentoo: broken, if all the forum posts are any indication
- Slackware (and Salix, etc.): ck-launch-session works with no problems.

I guess Mr. Volkerding is doing something right...
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Consolekit

Post by Shador »

In what regard is it broken with the others?
Image
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: Consolekit

Post by GJones »

ck-launch-session never creates an active session when used in .xinitrc, thus automount and power management don't work properly. Or, in some cases, creates an active session but somehow screws it up so that power management doesn't work. The only way to get a working consolekit session is to log in through one of the various bloaty display managers.

But wait a minute... The version of KDE on Slackware/Salix uses HAL, not consolekit/udisks. And pcmanfm-mod uses HAL too. Maybe it doesn't work on Slackware either, and I'm just not noticing because everything uses HAL. Hmm.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Consolekit

Post by thenktor »

From my Openbox xinitrc:

Code: Select all

# start the openbox session, if possible attached to consolekit
if [ -e /usr/bin/ck-launch-session ]; then
        exec /usr/bin/ck-launch-session /usr/bin/openbox-session
else
        exec /usr/bin/ck-launch-session
fi
ck-launch-session is needed for my upower based logout tool (wm-logout)and it works.

PS: Who else can see the major bug in this xinitrc? :mrgreen:
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gapan
Salix Wizard
Posts: 6349
Joined: 6. Jun 2009, 17:40

Re: Consolekit

Post by gapan »

ConsoleKit is not maintained anymore: http://www.freedesktop.org/wiki/Software/ConsoleKit :shock:
Image
Image
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Consolekit

Post by JRD »

Lol thenktor !

About Systemd: it seems all the recent effort of freedesktop.org improvements for the desktop are merging using systemd. This is a problem in my opinion as systemd seems to be focused on Linux only (BSD and the like may have difficulties implementing it) and other thing, I don't think Patrick will ever switch to systemd one day...
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Consolekit

Post by mimosa »

Shouldn't it be like this:

Code: Select all

# start the openbox session, if possible attached to consolekit
if [ -e /usr/bin/ck-launch-session ]; then
        exec /usr/bin/ck-launch-session /usr/bin/openbox-session
else
        exec /usr/bin/openbox-session
fi
Incidentally, I discovered that locate in the Openbox beta hadn't set up its initial cache. I didn't rummage around to see if regular updates are scheduled, but I imagine not, either.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Consolekit

Post by thenktor »

Yep mimosa, that's how it should be. Nobody complained about this, so probably every Salix Openbox user has ConsoleKit installed 8-)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Consolekit

Post by mimosa »

I don't remember installing it, but it works. Just have a look ... yes it looks as though it came preinstalled:

Code: Select all

vanilla[disk-1]$ ls -l usr/bin | grep ck-launch-session
-rwxr-xr-x   1 root   root        4308 Dec 19  2010 ck-launch-session*
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Consolekit

Post by Shador »

JRD wrote:Lol thenktor !

About Systemd: it seems all the recent effort of freedesktop.org improvements for the desktop are merging using systemd. This is a problem in my opinion as systemd seems to be focused on Linux only (BSD and the like may have difficulties implementing it) and other thing, I don't think Patrick will ever switch to systemd one day...
There are so many solutions for this. Patching/forking systemd, developing a version for BSD, continuing/forking console-kit, ...
IMO systemd seems a really worthwile development, as it simplifies daemon startup a lot. The current solution with the init scripts by keeping track of PIDs is very hackish and opposoed to the script solution systemd is much more robust an reliable. Probably the software has bugs as of now, but in the long run with those bugs eliminated, it can get up to a level of robustness and reliability init scripts just cannot reach by design.
Image
Post Reply