Update gamemode.rules.in

added policykit rules for a new helper to modify values in /proc/sys
This commit is contained in:
Henrik Holst 2023-12-04 19:53:17 +01:00 committed by afayaz-feral
parent 97e588a5ad
commit 7381d93c13

View File

@ -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;