feat(about): editable hostname input
This commit is contained in:
parent
44a333d070
commit
9963844b58
6 changed files with 294 additions and 155 deletions
12
resources/polkit-1/rules.d/cosmic-settings.rules
Normal file
12
resources/polkit-1/rules.d/cosmic-settings.rules
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.freedesktop.locale1.set-locale" ||
|
||||
action.id == "org.freedesktop.locale1.set-keyboard" ||
|
||||
action.id == "org.freedesktop.ModemManager1.Device.Control" ||
|
||||
action.id == "org.freedesktop.hostname1.set-static-hostname" ||
|
||||
action.id == "org.freedesktop.hostname1.set-hostname") &&
|
||||
subject.local &&
|
||||
subject.active &&
|
||||
subject.isInGroup ("sudo")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue