Pass command line arguments to Firefox

start-tor-browser script reads:

XXX Someday we should pass whatever command-line arguments we got

(probably filenames or URLs) to Firefox.

Now that Vidalia is removed from the bundle, passing command line parameters from start-tor-browser to Firefox seems straightforward.

This could be very convenient for launching TBB with a specific URL to run tests or experiments. See also comment by Roger: http://tor.stackexchange.com/questions/84/how-do-i-create-a-launcher-script-that-opens-an-url-in-torbrowser-from-the-bu#comment98_92

Applying the attached minimal patch, all command line arguments (except TBB's own --debug) were successfully passed to Firefox binary.

Some commands that worked for me were as follows (Ubuntu 12.04 & TBB v3.5):

  • ./start-tor-browser torproject.org open torproject.org

  • ./start-tor-browser !about:tor torproject.org open !about:tor and torproject.org (will open 2 tabs)

  • ./start-tor-browser -search Tor search for the word "Tor" using TBB's default search engine (startpage)

  • ./start-tor-browser --debug torproject.org run TBB in debug mode and open torproject.org

Still, no serious thoughts were given about the issues this may bring.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information