That is, if the ControlPort"Įcho 'password is “secret” (without curly quotes) then we must'Įcho "start this script after setting the environment variable"Įcho " \$ TOR_CONTROL_PASSWD='\"secret\"' $myname" TOR_CONTROL_PASSWD environment variable."Įcho "The Tor ControlPort password should be given inside double"Įcho "quotes, inside single quotes. If [ -z "$2" -o "$" = $'\"' then # First 2 chars were '"Ĭomplain "There seems to have been a quoting problem with your \ Printf " -unregister-app Unregister Tor Browser as a desktop app for this user\n" Printf " -register-app Register Tor Browser as a desktop app for this user\n" Printf " -detach Detach from terminal and run Tor Browser in the background.\n" Printf " -log Record Tor and Firefox output in file (default: tor-browser.log)\n" Printf " -verbose Display Tor and Firefox output in the terminal\n" If test -r /proc/cpuinfo & ! grep -q '^flags\s*.* sse2' /proc/cpuinfo thenĬomplain "Tor Browser requires a CPU with SSE2 support. Gxmessage -title "$complain_dialog_title" \Ĭomplain "The Tor Browser Bundle should not be run as root. # be used by one of the 'lightweight' Gtk-based desktop # be the least likely program to have available, but it might # Debian with the default GNOME installation, so it seems to Xmessage -title "$complain_dialog_title" \ Kdialog -title "$complain_dialog_title" \ # not just assume the command failed to display a message if # close button, so we do need to look at the exact exit code, (xmessage returns 1 if the user clicks the WM # other shells set the same exit code if they can't run a # In mksh, non-existent commands return 127 I'll assume all # try to pop up a message in the GUI in the nicest way # Otherwise, we're being run by a GUI program of some sort # If we're being run in debug/verbose mode, complain to stderr. # Trim leading newlines, to avoid breaking formatting in some dialogs.Ĭomplain_message="`echo "$1" | sed '/./,$!d'`" # Complain about an error, by any means necessary. # Do not (try to) connect to the session manager # Make sure this script wasn't started as 'sh start-tor-browser' or similar.Įcho "$complain_dialog_title should be started as './start-tor-browser'" # However, we do want to have the same look and feel with similar features. # GNU/Linux does not really require something like RelativeLink.c
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |