1
0

gamemode.rules.in 402 B

123456789101112
  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. subject.isInGroup("@GAMEMODE_PRIVILEGED_GROUP@"))
  9. {
  10. return polkit.Result.YES;
  11. }
  12. });