[FreeBSD] [XFCE] Trucs et astuces

[FreeBSD] [XFCE] Trucs et astucess.

1/ Activation du bouton d’arrêt/extinction et du bouton de suspension.
Créer :
/usr/local/etc/polkit-1/rules.d/shutdown.rules
Ajouter :
# Shutdown
polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});

Ajouter :
# Suspend
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.suspend"
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});

Comments are closed, but trackbacks and pingbacks are open.