start-firefox 524 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. basedir=$(dirname "$0")
  3. add_LD_LIBRARY_PATH() {
  4. if test -z "$LD_LIBRARY_PATH"
  5. then
  6. LD_LIBRARY_PATH="$1"
  7. else
  8. LD_LIBRARY_PATH="$1:$LD_LIBRARY_PATH"
  9. fi
  10. }
  11. # Check if the system has a more recent version of libstdc++.so.6; if yes, use
  12. # that instead of the bundled version.
  13. "$basedir/abicheck" >/dev/null 2>&1
  14. if [ $? -ne 0 ]; then
  15. add_LD_LIBRARY_PATH "$basedir/TorBrowser/Tor/libstdc++/"
  16. fi
  17. add_LD_LIBRARY_PATH "$basedir/TorBrowser/Tor/"
  18. export LD_LIBRARY_PATH
  19. exec "$basedir/firefox.real" "$@"