summaryrefslogtreecommitdiff
path: root/testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules
blob: f001848e45442a50f0bf879b2ca634785366f06c (plain)
1
2
3
4
5
6
7
8
9
polkit.addRule(
  function(action, subject) {
    if ( action.id == "org.kde.powerdevil.discretegpuhelper.hasdualgpu" &&
        subject.isInGroup("power") ) {
      return polkit.Result.YES;
    }
  }
);