wireplumber: sandbox such that it gets higher sched priority

This commit is contained in:
2024-04-23 04:16:35 +00:00
parent 6d74c6616c
commit c174eddddf

View File

@@ -3,9 +3,8 @@
sane.programs.wireplumber = { sane.programs.wireplumber = {
sandbox.method = "bwrap"; sandbox.method = "bwrap";
sandbox.whitelistDbus = [ sandbox.whitelistDbus = [
# i think this isn't strictly necessary; it just wants to ask the portal for realtime perms "system" #< so it can request better scheduling from rtkit
# "system" "user" #< TODO: is this needed?
"user"
]; ];
sandbox.whitelistAudio = true; sandbox.whitelistAudio = true;
sandbox.extraPaths = [ sandbox.extraPaths = [
@@ -21,6 +20,10 @@
"/sys/class/video4linux" "/sys/class/video4linux"
"/sys/devices" "/sys/devices"
]; ];
sandbox.extraConfig = [
# needed if i want rtkit to grant this higher scheduling priority
"--sane-sandbox-keep-namespace" "pid"
];
suggestedPrograms = [ "alsa-ucm-conf" ]; suggestedPrograms = [ "alsa-ucm-conf" ];