Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#27857 closed defect (fixed)

Tor Browser launcher scripts override user-supplied LD_LIBRARY_PATH

Reported by: creideiki Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Minor Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I don't run PulseAudio, but sometimes I want sound in Tor Browser. To do this, I run Tor Browser under apulse (, which adds /usr/lib64/apulse/ to 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.

Checking /proc/$PID/environ showed that apulse's path had been overridden; it now contained LD_LIBRARY_PATH=./TorBrowser/Tor/ instead.

This is because the ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/firefox script overrides LD_LIBRARY_PATH unconditionally:

basedir=$(dirname "$0")


I changed that to add to the path instead of overriding it:


and now I get sound from Tor Browser.

Child Tickets

Change History (1)

comment:1 Changed 21 months ago by boklm

Resolution: fixed
Status: newclosed

This should be fixed by the patch for #27552:

This patch is included in the alpha 8.5a2 (which will be released today), and will be backported to the stable series after some testing in the alpha.

Last edited 21 months ago by boklm (previous) (diff)
Note: See TracTickets for help on using tickets.