audio-server: add alternative, broader polkit rule for later

This commit is contained in:
Sandro - 2023-05-26 19:32:45 +02:00
parent 96576625d9
commit 22222227b5
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,15 @@ in
return polkit.Result.YES;
}
});
// broader alternative if the above ever breaks
// polkit.addRule(function(action, subject) {
// if (subject.isInGroup("rtkit")) {
// if (action.id.indexOf("org.freedesktop.RealtimeKit1.") == 0) {
// return polkit.Result.YES;
// }
// }
// });
'';
rtkit.enable = true;
};