Browse Source

Update com.feralinteractive.GameMode.policy.in

added plociykit support for a new helper to write to /proc/sys
Henrik Holst 1 year ago
parent
commit
97e588a5ad
1 changed files with 11 additions and 0 deletions
  1. 11 0
      data/polkit/actions/com.feralinteractive.GameMode.policy.in

+ 11 - 0
data/polkit/actions/com.feralinteractive.GameMode.policy.in

@@ -47,4 +47,15 @@
     <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
   </action>
 
+  <action id="com.feralinteractive.GameMode.procsys-helper">
+    <description>Modify the /proc/sys values</description>
+    <message>Authentication is required to modify the /proc/sys/ values</message>
+    <defaults>
+      <allow_any>no</allow_any>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>no</allow_active>
+    </defaults>
+    <annotate key="org.freedesktop.policykit.exec.path">@LIBEXECDIR@/procsysctl</annotate>
+    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+  </action>
 </policyconfig>