polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/usr/bin/system76-power" && subject.local && subject.active) { return polkit.Result.YES; } });