]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
no longer detaches process when launching Tor Browser (fixes #105)
authorMicah Lee <micah@micahflee.com>
Thu, 31 Jul 2014 20:48:43 +0000 (13:48 -0700)
committerMicah Lee <micah@micahflee.com>
Thu, 31 Jul 2014 20:48:43 +0000 (13:48 -0700)
torbrowser-launcher

index 9c2570536f4ef3cd1f3b6b1515af0b0e89663669..c1c0da2bc783df7e4fb7b6c7fdeeb53fe8fac0d4 100755 (executable)
@@ -1042,8 +1042,6 @@ class TBLLauncher:
         self.run_task()
 
     def run(self, run_next_task=True):
-        subprocess.Popen([self.common.paths['tbb']['start']])
-
         # play modem sound?
         if self.common.settings['modem_sound']:
             try:
@@ -1051,13 +1049,13 @@ class TBLLauncher:
                 pygame.mixer.init()
                 sound = pygame.mixer.Sound(self.common.paths['modem_sound'])
                 sound.play()
-                time.sleep(10)
             except ImportError:
                 md = gtk.MessageDialog(None, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _("The python-pygame package is missing, the modem sound is unavailable."))
                 md.set_position(gtk.WIN_POS_CENTER)
                 md.run()
                 md.destroy()
 
+        subprocess.call([self.common.paths['tbb']['start']])
 
         if run_next_task:
             self.run_task()