You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
801 B
23 lines
801 B
// Dragonrat admin tweaks updater role
|
|
//
|
|
// DO NOT EDIT THIS FILE, it will be overwritten on update.
|
|
//
|
|
// Allow users in the updater role to update the system
|
|
// without being interrupted by a password dialog
|
|
|
|
|
|
polkit.addRule(function(action, subject) { if ( (
|
|
action.id == "org.freedesktop.Flatpak.app-update" ||
|
|
action.id == "org.freedesktop.Flatpak.app-install" ||
|
|
action.id == "org.freedesktop.Flatpak.app-uninstall" ||
|
|
action.id == "org.freedesktop.Flatpak.runtime-update" ||
|
|
action.id == "org.freedesktop.Flatpak.runtime-install" ||
|
|
action.id == "org.freedesktop.Flatpak.runtime-uninstall" ||
|
|
action.id == "org.projectatomic.rpmostree1.rebase") && (
|
|
subject.isInGroup("wheel") || subject.isInGroup("updater")
|
|
) && subject.active) {
|
|
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|