From dc2f7bbcd0932c94c6dc149fea3e01ae2dee8dd6 Mon Sep 17 00:00:00 2001 From: Henrik Holst Date: Wed, 3 May 2023 07:39:25 +0200 Subject: [PATCH] added polkit rules for cpucorectl added polkit rules so we can run the cpucorectl utility without being root --- data/polkit/rules.d/gamemode.rules.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/polkit/rules.d/gamemode.rules.in b/data/polkit/rules.d/gamemode.rules.in index 504e48c..749f8f4 100644 --- a/data/polkit/rules.d/gamemode.rules.in +++ b/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;