gnome-control-center/panels/common/gnome-control-center.rules
Rui Matos 6154170bb3 region: Apply user settings system-wide on single account systems
On single account systems we don't show the login button but the user
should still be able to set system-wide locale settings. We can simply
export the user's own settings to the system in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=694922
2013-04-15 11:53:27 +02:00

11 lines
421 B
Text

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.locale1.set-locale" ||
action.id == "org.freedesktop.locale1.set-keyboard" ||
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;
}
});