start-tor-browser script doesn't work when symlinked
The start-tor-browser script that comes with the Linux Tor Browser Bundle package fails if a symlink is created that points to it and the symlink then executed instead of the actual script.
For example, I installed the bundle in ~/apps/ but I have ~/bin/ in my $PATH so I symlinked the startup script in ~/bin/: tor-browser -> ../apps/tor-browser_en-US/start-tor-browser
However, this messes up the startup since the script assumes now that it's located in ~/bin instead of ~/apps/tor-browser_en-US/
Below is a patch for the start-tor-browser script that fixes this issue:
19c19,25 < mydir="$(dirname $0)" --- > if [ -L $0 ]; then > appname=$(readlink -f $0) > else > appname=$0 > fi > > mydir="$(dirname $appname)"