XFCE Shutdown doesn't work.

Lengsel

Member


Messages: 25

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

Well-Known Member

Reaction score: 14
Messages: 341

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.
 
OP
L

Lengsel

Member


Messages: 25

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

Daemon

Reaction score: 548
Messages: 2,275

Lengsel said:
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)?
 
OP
L

Lengsel

Member


Messages: 25

Code:
<?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>
 
OP
L

Lengsel

Member


Messages: 25

In /etc/group I have

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

Beastie

Daemon

Reaction score: 548
Messages: 2,275

Code:
[...]
<match action=\"org.freedesktop.hal.power-management.shutdown\">
[...]
<match action=\"org.freedesktop.hal.power-management.reboot\">
[...]
See those backslashes?

And use code tags please.
 
OP
L

Lengsel

Member


Messages: 25

Oh, should I delete all of the backlashes(\) from the file? What do you mean code tags?
 
OP
L

Lengsel

Member


Messages: 25

I changed it so it is

Code:
<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

New Member


Messages: 10

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