20da [XFCE] XFCE Shutdown doesn't work. [Archive] - The FreeBSD Forums

PDA

View Full Version : [XFCE] XFCE Shutdown doesn't work.


Lengsel
March 3rd, 2010, 05:20
I made the changes to /usr/local/etc/PolicyKit/PolicyKit.conf and when I click on Shutdown or on Reboot, they both take me back to XDM. I can not turn off the computer from the menu, only from Terminal and typing shutdown. I do have hald and dbus enabled.

fender0107401
March 3rd, 2010, 06:05
Did you start the hal and dbus service?

Lengsel
March 3rd, 2010, 07:27
Yes, as I said in my original posting, I have hald and dbus enabled.

fender0107401
March 3rd, 2010, 08:58
Sorry, I have no idea.

I used xfce before but run startx to startx xfce instead of xdm (why not gdm), at least it works for me.

Lengsel
March 3rd, 2010, 09:36
Because, again, as I said in my original posting, it is not an XDM issue, it's a Shutdown and Reboot issue. When I click on them from the menu, instead of shutting down the computer, or rebooting it, it closes the session and goes back to XDM.

Beastie
March 3rd, 2010, 11:46
Yes, as I said in my original posting, I have hald and dbus enabled.
"Enabled" and "running" are two different things. They won't start unless you manually start them with the rc.d scripts or reboot. Just saying...

Could you post the contents of /usr/local/etc/PolicyKit/PolicyKit.conf?

Is your user a member of the appropriate group (operator)?

Lengsel
March 3rd, 2010, 20:28
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
<define_admin_auth group="operator" />
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.unmount-others">
<return result="yes" />
<match action=\"org.freedesktop.hal.power-management.shutdown\">
<return result="yes" />
</match>
<match action=\"org.freedesktop.hal.power-management.reboot\">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes" />
</match>
</config>

Lengsel
March 3rd, 2010, 20:30
In /etc/group I have

wheel:*:0: root,lengsel
operator:*:5: root,lengsel

Beastie
March 3rd, 2010, 20:48
[...]
<match action=\"org.freedesktop.hal.power-management.shutdown\">
[...]
<match action=\"org.freedesktop.hal.power-management.reboot\">
[...]

See those backslashes?

And use code tags please.

Lengsel
March 3rd, 2010, 22:42
Oh, should I delete all of the backlashes(\) from the file? What do you mean code tags?

DutchDaemon
March 3rd, 2010, 23:47
What do you mean code tags?

Posting and Editing in the FreeBSD Forums
http://forums.freebsd.org/showthread.php?t=8816

Beastie
March 4th, 2010, 00:11
Oh, should I delete all of the backlashes(\) from the file?
Yes, the four of 'em. I thought it was clear enough.

Lengsel
March 4th, 2010, 00:42
I changed it so it is

<match action="org.freedesktop.hal.power-management.shutdown">

<match action="org.freedesktop.hal.power-management.reboot">

Rebooted and it still only goes back to XDM

gnutz
May 31st, 2010, 09:40
I can't remember where this came from, but I got it working with the following edit to PolicyKit.conf:
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>

0