execute ./start-tor-browser.desktop instead of ./Browser/start-tor-browser (#176)

This commit is contained in:
Micah Lee 2015-05-11 19:20:30 -04:00
parent 18717f7e85
commit 5f833d7329
2 changed files with 3 additions and 2 deletions

View File

@ -144,7 +144,8 @@ class Common:
'update_check_file': tbb_cache+'/download/RecommendedTBBVersions',
'tbb': {
'dir': tbb_local+'/tbb/'+self.architecture,
'start': tbb_local+'/tbb/'+self.architecture+'/tor-browser_'+self.language+'/Browser/start-tor-browser',
'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',
'versions': tbb_local+'/tbb/'+self.architecture+'/tor-browser_'+self.language+'/Browser/TorBrowser/Docs/sources/versions',
},
}

View File

@ -631,7 +631,7 @@ class Launcher:
gtk.main_iteration_do(True)
# run Tor Browser
subprocess.call([self.common.paths['tbb']['start'], '--detach'])
subprocess.call([self.common.paths['tbb']['start']], cwd=self.common.paths['tbb']['dir_tbb'])
if run_next_task:
self.run_task()