MATE Can't shutdown/reboot via menu

  • Thread starter Deleted member 63539
  • Start date
D

Deleted member 63539

Guest
This is my .xinitrc:

Code:
exec dbus-launch --exit-with-session ck-launch-session mate-session

The same code worked fine with xfce4 but not MATE:

Code:
exec dbus-launch --exit-with-session ck-launch-session startxfce4

On the Log out dialog, it only allows me to log out but there is no buttons for shutdown and reboot.

Please help.
 
in file
/usr/local/share/polkit-1/actions/org.freedesktop.consolekit.policy

switch where you are interested,

just like below (for example - system shutdown)
....
<action id="org.freedesktop.consolekit.system.stop">
<description>Stop the system</description>
<message>System policy prevents stopping the system</message>
<defaults>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
...
 
in file
/usr/local/share/polkit-1/actions/org.freedesktop.consolekit.policy

switch where you are interested,

just like below (for example - system shutdown)
I think it should be etc? :oops: BTW, I don't understand your comment. Please make it easier to understand. Thanks.
 
In this file, you give permissions for individual events. What don't you understand?
I have given an example of how to turn off the system at user level. You do other events in the same way ...
You want to reboot you are giving permission for the corresponding event
 
In this file, you give permissions for individual events. What don't you understand?
I have given an example of how to turn off the system at user level. You do other events in the same way ...
Do I need to copy this file from /usr/local/share to /usr/local/etc? I found the location /usr/local/share is somehow not right at all.
 
No, you don't copy anything anywhere. You should change in this file where I gave you.
make copies of this file before editing
Will it be replaced when pkg upgrade to newer package version?
 
Give the shutdown executable rights to launch it from the user
I think that fixed that for me , but i'm not sure

In any case that should make it possible to just add a shortcut. Might still be better to configure doas/sudo to allow executing it without password but the result will be the same. I always wonder why DEs don't do this anyways but rather rely on something as annoying as consolekit.
 
Back
Top