1 2 3 4 5
polkit.addRule(function(action, subject) { if (action.id == "org.gnome.cpufreqselector" && subject.isInGroup("power")) { return polkit.Result.YES; } });