Skip to content

Commit

Permalink
fix:vso sys upgrade outputs root error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jul 26, 2024
1 parent f59d92c commit 8c05778
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
<vendor>Vanilla OS</vendor>
<vendor_url>https://www.vanillaos.org/</vendor_url>
<icon_name>package-x-generic</icon_name>
<action id="org.vanillaos.vso.sys">
<description>Check for system package updates</description>
<message>Authentication is required to check for updates</message>
<icon_name>package-x-generic</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/vso</annotate>
<annotate key="org.freedesktop.policykit.exec.argv1">sys</annotate>
</action>
<action id="org.vanillaos.vso.sys-upgrade">
<description>Check for system package updates</description>
<message>Authentication is required to check for updates</message>
Expand Down Expand Up @@ -40,4 +52,4 @@
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/podman</annotate>
</action>
</policyconfig>
</policyconfig>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
polkit.addRule(function (action, subject) {
if (
(
action.id == "org.vanillaos.vso.sys" ||
action.id == "org.vanillaos.vso.sys-upgrade" ||
action.id == "org.vanillaos.vso.distrobox" ||
action.id == "org.vanillaos.vso.podman"
Expand Down

0 comments on commit 8c05778

Please sign in to comment.