[Pkg-privacy-commits] [torbrowser-launcher] 300/476: launches Tor Browser as a background process again to make the TBL window close (#105)
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.
commit 47b18da1b2b72eba5d7d18fda5e2aed278227180
Author: Micah Lee <micah at micahflee.com>
Date: Thu Jul 31 16:03:33 2014 -0700
launches Tor Browser as a background process again to make the TBL window close (#105)
---
torbrowser-launcher | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index b854e18..b6b3120 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -1039,6 +1039,9 @@ class TBLLauncher:
self.run_task()
def run(self, run_next_task=True):
+ devnull = open('/dev/null', 'w')
+ subprocess.Popen([self.common.paths['tbb']['start']], stdout=devnull, stderr=devnull)
+
# play modem sound?
if self.common.settings['modem_sound']:
try:
@@ -1046,14 +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()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list