gnome-control-center/panels/common/gnome-control-center.rules
Bastien Nocera 7889482576 info: Set the transient hostname too
As we need that to get the right name from "hostname".
2012-11-16 19:59:49 +01:00

9 lines
301 B
Text

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.hostname1.set-static-hostname" ||
action.id == "org.freedesktop.hostname1.set-hostname") &&
subject.local &&
subject.active &&
subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});