mac-tor.sh 735 B

12345678910111213141516
  1. #!/bin/sh
  2. # Compiled Python modules require a compatible Python, which means 32-bit 2.6.
  3. export VERSIONER_PYTHON_VERSION=2.6
  4. export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH
  5. # Set the current working directory to the directory containing this executable,
  6. # so that pluggable transport executables can be given with relative paths. This
  7. # works around a change in OS X 10.9, where the current working directory is
  8. # otherwise set to "/" when an application bundle is started from Finder.
  9. # https://trac.torproject.org/projects/tor/ticket/10030
  10. cd "$(dirname "$0")"
  11. if [ ! -f tor.real -a -d ../../../MacOS/Tor ]; then
  12. # On newer releases of Tor Browser, tor.real is in Contents/MacOS/Tor/.
  13. cd ../../../MacOS/Tor
  14. fi
  15. exec ./tor.real "$@"