flatpak/polkit_rules_usability.patch

17 lines
1021 B
Diff
Raw Normal View History

Index: flatpak-0.11.8.3/system-helper/org.freedesktop.Flatpak.rules.in
===================================================================
--- flatpak-0.11.8.3.orig/system-helper/org.freedesktop.Flatpak.rules.in
+++ flatpak-0.11.8.3/system-helper/org.freedesktop.Flatpak.rules.in
@@ -3,7 +3,10 @@ polkit.addRule(function(action, subject)
action.id == "org.freedesktop.Flatpak.runtime-install"||
action.id == "org.freedesktop.Flatpak.app-uninstall" ||
action.id == "org.freedesktop.Flatpak.runtime-uninstall" ||
- action.id == "org.freedesktop.Flatpak.modify-repo") &&
+ action.id == "org.freedesktop.Flatpak.modify-repo" ||
+ action.id == "org.freedesktop.Flatpak.app-update" ||
+ action.id == "org.freedesktop.Flatpak.runtime-update" ||
+ action.id == "org.freedesktop.Flatpak.appstream-update") &&
subject.active == true && subject.local == true &&
subject.isInGroup("@privileged_group@")) {
return polkit.Result.YES;