Tor Browser launcher scripts override user-supplied LD_LIBRARY_PATH
I don't run PulseAudio, but sometimes I want sound in Tor Browser. To do this, I run Tor Browser under apulse (https://github.com/i-rinat/apulse), which adds
LD_LIBRARY_PATH to make applications pick up its PulseAudio-to-ALSA shim libraries.
I think this used to work fine, but I haven't used it for a long time; the last time was definitely before the major upgrade to Tor Browser 8. Today, I wanted to use it again in 8.0.1, but I got no sound.
/proc/$PID/environ showed that apulse's path had been overridden; it now contained
This is because the
~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/firefox script overrides
basedir=$(dirname "$0") LD_LIBRARY_PATH="$basedir/TorBrowser/Tor/"
I changed that to add to the path instead of overriding it:
and now I get sound from Tor Browser.