Opened 6 years ago

Closed 6 years ago

#10472 closed enhancement (fixed)

Pass command line arguments to Firefox

Reported by: gacar Owned by: erinn
Priority: Medium Milestone:
Component: Applications/Tor bundles/installation Version:
Severity: Keywords: tbb-3.0, tbb-usability, MikePerry201402R
Cc: mikeperry, gk Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Attachments (1)

start-tbb-with-args.patch (1.1 KB) - added by gacar 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by gacar

Attachment: start-tbb-with-args.patch added

comment:1 Changed 6 years ago by gk

Cc: gk added

comment:2 Changed 6 years ago by mikeperry

Keywords: MikePerry201401R added
Status: newneeds_review

Someone just posted a gist somewhere for this too, though I lost track of that ticket.

comment:3 Changed 6 years ago by gacar

Could it be that one: start-tor-browser-with-args.sh ?

It's same patch with additional comments and was posted on the Tor StackExchange thread mentioned above.

comment:4 Changed 6 years ago by mikeperry

Keywords: MikePerry201402R added; MikePerry201401R removed

comment:5 Changed 6 years ago by mikeperry

Resolution: fixed
Status: needs_reviewclosed

This is merged. It should appear in the next nightly at https://people.torproject.org/~linus/builds/, in 3.6-beta-1, and in the next 3.5 release.

Note: See TracTickets for help on using tickets.