mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-05 20:58:29 +02:00
Update gamemode.rules.in
added policykit rules for a new helper to modify values in /proc/sys
This commit is contained in:

committed by
afayaz-feral

parent
97e588a5ad
commit
7381d93c13
@@ -5,7 +5,8 @@
|
|||||||
polkit.addRule(function (action, subject) {
|
polkit.addRule(function (action, subject) {
|
||||||
if ((action.id == "com.feralinteractive.GameMode.governor-helper" ||
|
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") &&
|
action.id == "com.feralinteractive.GameMode.cpu-helper") ||
|
||||||
|
action.id == "com.feralinteractive.GameMode.procsys-helper") &&
|
||||||
subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
|
subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
|
||||||
{
|
{
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
|
Reference in New Issue
Block a user