Tweak x11-wm/xfce4-session version 4.12.1_3
[dports.git] / x11-wm / xfce4-session / files / pkg-message.in
1 To be able to shutdown or reboot your system, you'll have to add .rules
2 files in %%LOCALBASE%%/etc/polkit-1/rules.d directory. Which looks
3 like this (replace PUTYOURGROUPHERE by your group):
4
5 polkit.addRule(function (action, subject) {
6   if ((action.id == "org.freedesktop.consolekit.system.restart" ||
7       action.id == "org.freedesktop.consolekit.system.stop")
8       && subject.isInGroup("PUTYOURGROUPHERE")) {
9     return polkit.Result.YES;
10   }
11 });
12
13 For those who have working suspend/resume:
14
15 polkit.addRule(function (action, subject) {
16   if (action.id == "org.freedesktop.consolekit.system.suspend"
17       && subject.isInGroup("PUTYOURGROUPHERE")) {
18     return polkit.Result.YES;
19   }
20 });