You are not logged in.

#1 2012-05-10 18:34:23

valemon
Member
Registered: 2009-08-29
Posts: 24

no automount - shutdown/restart in openbox

Hello


I was still using hal until today when I tried to browse my usb flash disk a "failed to mount, not authorized to perform operation message appeared"
Ok, time to remove hal I said. And I did.. I then replaced slim with lxdm, replaced the entry in innitab and rebooted.
Now automount doesn't work at all, neither does shutdown/restart..

Any help would be much appreciated


xinitrc is

exec ck-launch dbus-launch openbox-session

Offline

#2 2012-05-10 22:14:11

thehatusa
Member
From: DfG
Registered: 2010-01-19
Posts: 15

Re: no automount - shutdown/restart in openbox

Hi, i'm having the same problem as you, after a "pacman -Syu" a few hours ago. (Error: not autorized -> when automount, without poweroff o reboot option at lxde-logout). i'm using lxde DE.

In this post the people seems to have the same problem as we.
A possible solution was posted in the 8º post. i don't have test that yet.

.xinitrc

exec ck-launch-session startlxde

It was working fine before this happened.

Last edited by thehatusa (2012-05-10 22:32:25)

Offline

#3 2012-05-11 13:11:42

valemon
Member
Registered: 2009-08-29
Posts: 24

Re: no automount - shutdown/restart in openbox

The solution suggested in the link worked for me! (except this ). Also for the shutdown/restart issues this worked for me:

For anyone else having issues, it looks like this package has been abandoned by the dev.
First, assuming you have consolekit and dbus running correctly --

Edit /etc/oblogout.conf
Change usehal=true to usehal=false

Change the shutdown and restart commands to
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

As for suspending, I dont do it but the above command should work.

There's absolutely no good reason to have to edit sudoers to shutdown your machine if you are in the power group. It took me 2 minutes to research the correct dbus commands to shutdown and restart, instead of throwning the commands "shutdown -h now" and "reboot" into a script.

Offline

#4 2012-05-11 14:51:39

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: no automount - shutdown/restart in openbox

thehatusa wrote:

Hi, i'm having the same problem as you, after a "pacman -Syu" a few hours ago. (Error: not autorized -> when automount, without poweroff o reboot option at lxde-logout). i'm using lxde DE.

In this post the people seems to have the same problem as we.
A possible solution was posted in the 8º post. i don't have test that yet.

.xinitrc

exec ck-launch-session startlxde

It was working fine before this happened.

There are a lot of topics about that (assuming you use SLIM). SLIM now uses consolekit automatically and the ck-launch session has to be removed from xinitrc.

So, it has to be

exec startlxde

instead of

exec ck-launch-session startlxde

.

Offline

Board footer

Powered by FluxBB