Skip to content

Commit

Permalink
Use Browser/start-tor-browser instead of .desktop file
Browse files Browse the repository at this point in the history
This should have no functional consequence but will help with allowing
to start the browser with non-default options.
  • Loading branch information
Denis Laxalde committed Nov 5, 2019
1 parent 20b02d0 commit 52a68a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torbrowser_launcher/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def build_paths(self, tbb_version=None):
'dir': tbb_local + '/tbb/' + self.architecture,
'dir_tbb': tbb_local + '/tbb/' + self.architecture + '/tor-browser_' + self.language,
'start': tbb_local + '/tbb/' + self.architecture + '/tor-browser_' +
self.language + '/start-tor-browser.desktop'
self.language + '/Browser/start-tor-browser',
},
}

Expand Down
3 changes: 2 additions & 1 deletion torbrowser_launcher/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ def run(self):
return

# Run Tor Browser
subprocess.call([self.common.paths['tbb']['start']], cwd=self.common.paths['tbb']['dir_tbb'])
cmd = [self.common.paths['tbb']['start'], '--detach']
subprocess.call(cmd, cwd=self.common.paths['tbb']['dir_tbb'])
sys.exit(0)

# Start over and download TBB again
Expand Down

0 comments on commit 52a68a9

Please sign in to comment.