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
11 lines
421 B
Text
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;
|
|
}
|
|
});
|