feat(about): editable hostname input

This commit is contained in:
Michael Aaron Murphy 2024-04-10 15:18:25 +02:00 • committed by Michael Murphy
parent 44a333d070
commit 9963844b58
6 changed files with 294 additions and 155 deletions

View 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;
}
});