I don’t use pulseaudio. I know Firefox audio works perfectly with apulse.
How can I wrap Firefox with apulse in such a way that both the firefox command, and the firefox.desktop file use apulse transparently? (and without completely rebuilding the browser myself)
I don’t use pulseaudio. I know Firefox audio works perfectly with apulse.
How can I wrap Firefox with apulse in such a way that both the firefox command, and the firefox.desktop file use apulse transparently? (and without completely rebuilding the browser myself)
Because of how apulse works, this should be as simple as replacing the
libpulseaudio in firefox’s wrapper with apulse, which could be achieved
e.g. by writing the following to a file firefox.nix:
error: 'wrapper' at /nix/store/7jxkwci3rfd1j7k9jizyixvk28ldzx4l-nixpkgs-20.03.1619.ab3adfe1c76/nixpkgs/pkgs/applications/n
etworking/browsers/firefox/wrapper.nix:21:5 called with unexpected argument 'libpulseaudio', at /nix/store/7jxkwci3rfd1j7k
9jizyixvk28ldzx4l-nixpkgs-20.03.1619.ab3adfe1c76/nixpkgs/lib/customisation.nix:69:16
Oh, this one’s tricky — the wrapper unfortunately uses multiple layers of functions, which makes overriding it trickier. cfg is definitely the wrong way to go, since that’s what comes from nixpkgs config, a completely unvalidated config mechanism which I’m really not a big fan of, and the config is only used to determine which plugins and such to enable.