Re: [gentoo-user] Xfce4 shutdown issues
On 2011-07-06 17:37, john wrote: > Any suggestions other than converting to e16? (which is becoming > tempting). This seems to happen every upgrade of xfce4/polkit/dbus. polkit seems to me just another HAL... Try: http://wiki.xfce.org/tips Of course you still need to put: xfce4-user-session-shutdown.sh in the /etc/sudoers file and allow yourself (and whatever other users that you want) to shutdown. Myself, I'm still running xfce4-4.6.2... and have this in my /etc/sudoers file: usernamehere hostname=NOPASSWD: /usr/libexec/xfsm-shutdown-helper usernamehere hostname=NOPASSWD: /sbin/shutdown If all else fails you can still do a manual "sudo /sbin/shutdown -h now"... Whatever happened to simplicity and the KIS rule? HTH Best regards Peter K
Re: [gentoo-user] Xfce4 shutdown issues
Thanks Rudmer, This works well. Thanks for your help. I was under the impression that these rules were supplied but obviously not. Must have got them from somewhere else before but can't remember where. Many thanks Sent from my BlackBerry® smartphone on O2 -Original Message- From: Rudmer van Dijk Date: Thu, 07 Jul 2011 07:30:50 To: Reply-to: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Xfce4 shutdown issues On Wednesday 06 July 2011 16:37:40 john wrote: > Since a recent upgrade of polkit (I think) as a normal user I can no > longer shutdown using log out, shutdown option not available. As root > using shutdown only logs you out but does not shutdown. > > On a second machine as a normal user I can see shutdown but this only > logs me out. > > Are we supposed to write our own rules for this? > > I am in plugdev group and have dbus, consolekit and polkit in use flags. > > I cannot see any difference between config files on 2 machines but 1 is > a laptop the other desktop??? > > Any suggestions other than converting to e16? (which is becoming > tempting). This seems to happen every upgrade of xfce4/polkit/dbus. I had the same problem and have made this rule/config in /etc/polkit-1/localauthority/50-local.d/power.pkla -- start file -- [Local restart] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.restart ResultAny=yes ResultInactive=no ResultActive=yes [Local shutdown] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.stop ResultAny=yes ResultInactive=no ResultActive=yes [Local restart - multiple] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.restart-multiple-users ResultAny=yes ResultInactive=no ResultActive=yes [Local shutdown - multiple] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.stop-multiple-users ResultAny=yes ResultInactive=no ResultActive=yes -- end file -- don't know where I got it from, not from a Gentoo handbook... but this works for me 8-) you might also want to use an udisks.pkla to access usb devices: -- start file -- [udisks full access] Identity=unix-group:usb Action=org.freedesktop.udisks.* ResultAny=yes -- end file -- Rudmer
Re: [gentoo-user] Xfce4 shutdown issues
On Wednesday 06 July 2011 16:37:40 john wrote: > Since a recent upgrade of polkit (I think) as a normal user I can no > longer shutdown using log out, shutdown option not available. As root > using shutdown only logs you out but does not shutdown. > > On a second machine as a normal user I can see shutdown but this only > logs me out. > > Are we supposed to write our own rules for this? > > I am in plugdev group and have dbus, consolekit and polkit in use flags. > > I cannot see any difference between config files on 2 machines but 1 is > a laptop the other desktop??? > > Any suggestions other than converting to e16? (which is becoming > tempting). This seems to happen every upgrade of xfce4/polkit/dbus. I had the same problem and have made this rule/config in /etc/polkit-1/localauthority/50-local.d/power.pkla -- start file -- [Local restart] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.restart ResultAny=yes ResultInactive=no ResultActive=yes [Local shutdown] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.stop ResultAny=yes ResultInactive=no ResultActive=yes [Local restart - multiple] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.restart-multiple-users ResultAny=yes ResultInactive=no ResultActive=yes [Local shutdown - multiple] Identity=unix-group:wheel Action=org.freedesktop.consolekit.system.stop-multiple-users ResultAny=yes ResultInactive=no ResultActive=yes -- end file -- don't know where I got it from, not from a Gentoo handbook... but this works for me 8-) you might also want to use an udisks.pkla to access usb devices: -- start file -- [udisks full access] Identity=unix-group:usb Action=org.freedesktop.udisks.* ResultAny=yes -- end file -- Rudmer
[gentoo-user] Xfce4 shutdown issues
Oops apologies. Should send this on gentoo-user email address. Since a recent upgrade of polkit (I think) as a normal user I can no longer shutdown using log out, shutdown option not available. As root using shutdown only logs you out but does not shutdown. On a second machine as a normal user I can see shutdown but this only logs me out. Are we supposed to write our own rules for this? I am in plugdev group and have dbus, consolekit and polkit in use flags. I cannot see any difference between config files on 2 machines but 1 is a laptop the other desktop??? Any suggestions other than converting to e16? (which is becoming tempting). This seems to happen every upgrade of xfce4/polkit/dbus. John D Maunder