forked from Mirrors/flatpak-builder
system-helper: Do not ask for password when removing apps/runtimes
As it's already done for installing an app or runtime, we shouldn't ask privileged users to authenticate in order to remove them.tingping/wmclass
parent
d3715463f2
commit
1a1ec16a4f
|
@ -1,6 +1,8 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.freedesktop.Flatpak.app-install" ||
|
||||
action.id == "org.freedesktop.Flatpak.runtime-install") &&
|
||||
action.id == "org.freedesktop.Flatpak.runtime-install"||
|
||||
action.id == "org.freedesktop.Flatpak.app-uninstall" ||
|
||||
action.id == "org.freedesktop.Flatpak.runtime-uninstall") &&
|
||||
subject.active == true && subject.local == true &&
|
||||
subject.isInGroup("@privileged_group@")) {
|
||||
return polkit.Result.YES;
|
||||
|
|
Loading…
Reference in New Issue