소스 검색

added polkit rules for cpucorectl

added polkit rules so we can run the cpucorectl utility without being root
Henrik Holst 1 년 전
부모
커밋
dc2f7bbcd0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      data/polkit/rules.d/gamemode.rules.in

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

@@ -4,7 +4,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.gpu-helper" ||
+         action.id == "com.feralinteractive.GameMode.cpu-helper") &&
         subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
     {
         return polkit.Result.YES;