use threading again for launching browser so it doesnt lock up in python2.4

This commit is contained in:
Marcos Pinto 2008-03-28 00:22:22 +00:00
parent 86856b44de
commit 1a85622137
1 changed files with 8 additions and 1 deletions

View File

@ -132,8 +132,15 @@ def open_file(path):
def open_url_in_browser(url): def open_url_in_browser(url):
"""Opens link in the desktop's default browser""" """Opens link in the desktop's default browser"""
def start_browser(): def start_browser():
import threading
import webbrowser import webbrowser
webbrowser.open(url) class BrowserThread(threading.Thread):
def __init__(self, url):
threading.Thread.__init__(self)
self.url = url
def run(self):
webbrowser.open(self.url)
BrowserThread(url).start()
return False return False
import gobject import gobject