mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
Add a rule to allow members of the polkit group enable realtime scheduling for their processes. This can be useful for users of pipewire that are not running it in an (e)logind session, e.g. users of seatd or headless setups. fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13432
8 lines
200 B
Plaintext
8 lines
200 B
Plaintext
polkit.addRule(function(action, subject) {
|
|
if (subject.isInGroup("rtkit")) {
|
|
if (action.id.indexOf("org.freedesktop.RealtimeKit1.") == 0) {
|
|
return polkit.Result.YES;
|
|
}
|
|
}
|
|
});
|