mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Update gamemode.rules.in
added policykit rules for a new helper to modify values in /proc/sys
This commit is contained in:
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user