1
0

gamemode.rules.in 470 B

12345678910111213
  1. /*
  2. * Allow users in privileged gamemode group to run cpugovctl &
  3. * gpuclockctl without authentication
  4. */
  5. polkit.addRule(function (action, subject) {
  6. if ((action.id == "com.feralinteractive.GameMode.governor-helper" ||
  7. action.id == "com.feralinteractive.GameMode.gpu-helper" ||
  8. action.id == "com.feralinteractive.GameMode.cpu-helper") &&
  9. subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
  10. {
  11. return polkit.Result.YES;
  12. }
  13. });