Skip to content

Commit

Permalink
Properly handle URLs passed from command line
Browse files Browse the repository at this point in the history
Previous, URL arguments passed from the command line were ignored (the
"url_list" attribute in Launcher class was unused). We now pass the list
to start-tor-browser which will open a tab with each URL.

Fix #380.
  • Loading branch information
Denis Laxalde authored and dlax committed May 13, 2024
1 parent 5d8245e commit 4a88bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torbrowser_launcher/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def run(self):

# Run Tor Browser
subprocess.call(
[self.common.paths["tbb"]["start"], "--detach"],
[self.common.paths["tbb"]["start"], "--detach"] + self.url_list,
cwd=self.common.paths["tbb"]["dir_tbb"],
)
sys.exit(0)
Expand Down

0 comments on commit 4a88bc9

Please sign in to comment.