Consolekit

Introduce yourself, create test postings or talk nonsense

Consolekit

Postby GJones » 20. Dec 2011, 23:52

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...
GJones
 
Posts: 252
Joined: 22. Jul 2011, 23:27

Re: Consolekit

Postby Shador » 21. Dec 2011, 00:27

In what regard is it broken with the others?
Image
Shador
Salix Warrior
 
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Consolekit

Postby GJones » 21. Dec 2011, 03:33

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.
GJones
 
Posts: 252
Joined: 22. Jul 2011, 23:27

Re: Consolekit

Postby thenktor » 21. Dec 2011, 09:01

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)
last.fm (my last.fm profile)
User avatar
thenktor
Salix Wizard
 
Posts: 2393
Joined: 6. Jun 2009, 14:47
Location: Franconia

Re: Consolekit

Postby gapan » 21. Dec 2011, 09:05

ConsoleKit is not maintained anymore: http://www.freedesktop.org/wiki/Software/ConsoleKit :shock:
Image
User avatar
gapan
Salix Wizard
 
Posts: 3479
Joined: 6. Jun 2009, 17:40

Re: Consolekit

Postby JRD » 21. Dec 2011, 10:04

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
JRD
Salix Warrior
 
Posts: 952
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Consolekit

Postby mimosa » 21. Dec 2011, 10:05

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
mimosa
 
Posts: 1764
Joined: 25. May 2010, 17:02

Re: Consolekit

Postby thenktor » 21. Dec 2011, 10:08

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)
last.fm (my last.fm profile)
User avatar
thenktor
Salix Wizard
 
Posts: 2393
Joined: 6. Jun 2009, 14:47
Location: Franconia

Re: Consolekit

Postby mimosa » 21. Dec 2011, 10:19

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*
User avatar
mimosa
 
Posts: 1764
Joined: 25. May 2010, 17:02

Re: Consolekit

Postby Shador » 21. Dec 2011, 13:08

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
Shador
Salix Warrior
 
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria


Return to Salix pub