Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
pulseaudio: Add support for package configuration files. #16834
In a fashion like udev's support, this patch allows configurations from packages
This is accomplished by patching PulseAudio to read directories from environment
The environment variables are only used if they're defined, as such the previous
So months later I've come back to this finally since the current patch is broken beyond belief outside my ARM machine.
Wrapping the pulseaudio binaries causes some grief, but ultimately isn't doable because some packages use 'cfg.pulseaudio.package' to run pulseaudio binaries, which wouldn't be the wrapped version. Instead I've dropped the environment variables patch and now just get pulseaudio to look in /share/pulse/alsa-mixer for the alsa-mixer data which is generated the same, this is done by editing the configure.ac file to change the defines.
The only other way to do this would be to get pulseaudio's alsa-mixer module to support taking an paths-dir argument. Indeed, some of the code looks to be set up for such a situation. Doing this would mean it'd go in the default.pa file generated. This would be the ideal situation, but it doesn't solve the issue for other modules.
I'll put up a patch in a week or so when I can test it out on my ARM machine where it actually needs to work.
On Sun, Dec 02, 2018 at 02:19:12AM -0800, Léo Gaspard wrote: @Jookia It looks like this has gone under the radar for way too long… are you still interested in moving this forward?
Not any more, I don't use NixOS. If I have any other issues/PRs here those should probably be closed too.