diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-08-26 11:17:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-08-26 11:17:44 -0300 |
commit | 3b3f89d05de23d0b79499c60fd1fa75a8c15ec0f (patch) | |
tree | c8d1bb35379694829d0c2a34c9cc4dc992bfb7e5 /tor-browser | |
parent | 1c5bc6764a4e31ec3ff19e01acad8d868339deec (diff) | |
download | utils-tor-3b3f89d05de23d0b79499c60fd1fa75a8c15ec0f.tar.gz utils-tor-3b3f89d05de23d0b79499c60fd1fa75a8c15ec0f.tar.bz2 |
Updates tor-browser script
Diffstat (limited to 'tor-browser')
-rwxr-xr-x | tor-browser | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/tor-browser b/tor-browser index abba461..59bc430 100755 --- a/tor-browser +++ b/tor-browser @@ -7,23 +7,23 @@ 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 +#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`" @@ -35,13 +35,19 @@ else ARCH="linux64" fi - FOLDER="$HOME/apps/tor-browser/$ARCH" + #FOLDER="$HOME/apps/tor-browser/$ARCH" + FOLDER="$HOME/.local/bin/tor-browser/$ARCH" if [ -d "$FOLDER" ]; then mkdir -p $FOLDER/Logs cd $FOLDER - $FOLDER/start-tor-browser.desktop &> $FOLDER/Logs/tor-browser.log & + $FOLDER/start-tor-browser.desktop #&> $FOLDER/Logs/tor-browser.log & else - echo "Please download Tor Browser using tor-browser-dl or torbrowser-launcher first." + 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 +#fi |