瀏覽代碼

Update gamemode.rules.in

added policykit rules for a new helper to modify values in /proc/sys
Henrik Holst 1 年之前
父節點
當前提交
7381d93c13
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      data/polkit/rules.d/gamemode.rules.in

+ 2 - 1
data/polkit/rules.d/gamemode.rules.in

@@ -5,7 +5,8 @@
 polkit.addRule(function (action, subject) {
     if ((action.id == "com.feralinteractive.GameMode.governor-helper" ||
          action.id == "com.feralinteractive.GameMode.gpu-helper" ||
-         action.id == "com.feralinteractive.GameMode.cpu-helper") &&
+         action.id == "com.feralinteractive.GameMode.cpu-helper") ||
+         action.id == "com.feralinteractive.GameMode.procsys-helper") &&
         subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
     {
         return polkit.Result.YES;