You are not logged in.

#1 2012-08-14 08:11:17

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

[SOLVED] Can Openbox function without ConsoleKit ?

I've very recently converted to a "pure" systemd Arch system & desire to be without ConsoleKit, if it is possible at this stage.

I tried to remove ConsoleKit with pacman but was blocked with the following error:

handy ~  $  pdelete consolekit
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: oblogout: requires consolekit

Which brings two questions:

Can Openbox live without ConsoleKit?

If so, how?


Thanks for your time.

Last edited by handy (2012-08-14 09:20:50)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#2 2012-08-14 08:19:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Can Openbox function without ConsoleKit ?

The dependency relationship is with oblogout, not openbox. Find an alternative to oblogout that doesn't require consolekit.

Offline

#3 2012-08-14 09:04:03

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: [SOLVED] Can Openbox function without ConsoleKit ?

Thanks, I had worked that out & removed oblogout, rebooted & got stopped with some errors. Realised that I was calling consolekit when I called openbox-session in .xinitrc , so I modified the call & could then startx & open openbox.

I'm yet to reboot & see if there are still any errors or not, I'll try that now.


[edit:] For anyone who's wondering this line calls consolekit when you start Openbox:

exec ck-launch-session dbus-launch openbox-session

This one does not call consolekit:

exec dbus-launch openbox-session

Last edited by handy (2012-08-14 09:26:14)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#4 2012-08-14 09:15:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Can Openbox function without ConsoleKit ?

if you have a pure systemd arch, you should be able to user 'systemctl reoot" to reboot without root access as long as no other users are logged into the machine.  This should laso work with poweroff, suspend, and hibernate also used with the systemctl command.  If you still want a logout dialog, you could create a simple script with something like xmessage using those commands.

Offline

#5 2012-08-14 09:15:38

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: [SOLVED] Can Openbox function without ConsoleKit ?

Fantastic, NO consolekit, NO oblogout, NO ERRORS.

I like this systemd stuff. smile

Thanks, I'll call this thread solved.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#6 2012-08-14 09:19:43

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: [SOLVED] Can Openbox function without ConsoleKit ?

WonderWoofy wrote:

if you have a pure systemd arch, you should be able to user 'systemctl reoot" to reboot without root access as long as no other users are logged into the machine.  This should laso work with poweroff, suspend, and hibernate also used with the systemctl command.  If you still want a logout dialog, you could create a simple script with something like xmessage using those commands.

We posted at the same time. wink

I use systemctl reboot & poweroff from buttons configured for the job in Worker. I used to use a couple of simple scripts that first umounted my three NAS NFS shares (to get around the time out problem) & then shutdown or reboot. So I NEVER use oblogout anyway.

The new systemctl commands reboot & poweroff, automatically umount my NFS shares first & then do what they are named. Fantastic, this is how it is supposed to be. big_smile


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

Board footer

Powered by FluxBB