WIP: firefox: enable pulseaudio by default in wrapper#24012
WIP: firefox: enable pulseaudio by default in wrapper#24012corngood wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
See also #23989, which re-enables the ALSA backend. |
|
ALSA backend is enabled, but it still seems useful to include pulseaudio in the wrapper by default?
I haven't tested the first point-- but unless that's false (?) then ... can we default to this being enabled for usability's sake? FWIW a NixOS system with pulseaudio enabled does not necessarily have "config.pulseaudio" set one way or the other. [1] |
|
That issue was discussed before. See #29250.
My view is still the same: PulseAudio is insecure and horribly broken by design, NixOS shouldn't push it onto users.
It should be strictly opt-in, not opt-out.
|
|
Okay, well I'm just saying it's already included in the closure of firefox so I'm not sure it helps anyone to avoid it in the wrapper. Doing so seems to only break some setups (non-NixOS pulseaudio users) and nothing else... which is why it seems we might as well help firefox find its libraries. (I would not suggest this if it wasn't already being included) Does it help anyone to continue with the current behavior? |
|
Okay, well I'm just saying it's *already* included in the closure of firefox
(I would not suggest this if it wasn't already being included)
It should not be, so it's a bug which I shall investigate.
|
Motivation for this change
Firefox 52.0 removed the alsa backend, so without pulseaudio in LD_LIBRARY_PATH you get no audio.
WIP because:
How does this affect other uses of the wrapper (I only tested firefox 52)?
Is the predicate correct?
config.pulseaudio or trueis what's used for pulse support in chromium. Wine usesconfig.pulseaudio or stdenv.isLinux.Should we just enable the ALSA backend instead?
See firefox: reenable ALSA backend #23989
Should we require the user to set
config.pulseaudio?Most other packages don't seem to require this. Especially ones without alsa support.
Should we add a
pulseSupportparameter like in chromium and opt in/out where appropriate?Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)