[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #27857 [Applications/Tor Browser]: Tor Browser launcher scripts override user-supplied LD_LIBRARY_PATH



#27857: Tor Browser launcher scripts override user-supplied LD_LIBRARY_PATH
-----------------------+------------------------------------------
 Reporter:  creideiki  |          Owner:  tbb-team
     Type:  defect     |         Status:  new
 Priority:  Medium     |      Component:  Applications/Tor Browser
  Version:             |       Severity:  Minor
 Keywords:             |  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 (https://github.com/i-rinat/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")

 LD_LIBRARY_PATH="$basedir/TorBrowser/Tor/"
 }}}
 I changed that to add to the path instead of overriding it:
 {{{
 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$basedir/TorBrowser/Tor/"
 }}}
 and now I get sound from Tor Browser.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27857>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs