#!/bin/bash # # Wrapper for the Tor Software Bundle # # Parameters BASENAME="`basename $0`" # Prefer torbrowser-launcher #if which torbrowser-launcher &> /dev/null; then # FOLDER="$HOME/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser" # # # Sync vimperator config # #if [ -e "$HOME/.vimperator" ] && [ -d "$FOLDER" ] && [ ! -e "$FOLDER/.vimperatorrc" ]; then # #( # # cd "$FOLDER" # # rm -f .vimperator .vimperatorrc # # ln -sf "$HOME/.vimperator" # # ln -sf "$HOME/.vimperatorrc" # #) # #fi # # # Launch the other wrapper, forcing default locale. # mkdir -p $FOLDER/Logs # LC_ALL=C torbrowser-launcher &> $FOLDER/Logs/torbrowser-launcher.log & #else # Classic mode ARCH="`uname -m`" if [ "$ARCH" == "i386" ]; then ARCH="linux32" elif [ "$ARCH" == "i686" ]; then ARCH="linux32" elif [ "$ARCH" == "x86_64" ]; then ARCH="linux64" fi #FOLDER="$HOME/apps/tor-browser/$ARCH" FOLDER="$HOME/.local/share/tor-browser/$ARCH" #if [ -d "$FOLDER" ]; then if [ -x "$FOLDER/start-tor-browser.desktop" ]; then mkdir -p $FOLDER/Logs cd $FOLDER $FOLDER/start-tor-browser.desktop #&> $FOLDER/Logs/tor-browser.log & else if which hoarder &> /dev/null; then hoarder install tor-browser else #echo "Please download Tor Browser using tor-browser-dl or torbrowser-launcher first." echo "Please download Tor Browser using tor-browser-dl or hoarder." fi fi #fi