mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-11 07:37:53 +02:00
added polkit rules for cpucorectl
added polkit rules so we can run the cpucorectl utility without being root
This commit is contained in:

committed by
afayaz-feral

parent
437a129900
commit
dc2f7bbcd0
@@ -4,7 +4,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") &&
|
||||||
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