Need to start xdg-open in a new process as it does not do that itself - some browsers (Epiphany) can therefore cause Terminator to block until they are exited

This commit is contained in:
Iain Lane 2008-09-08 20:42:26 +01:00
parent fd8ad1bbea
commit aead00463c
1 changed files with 6 additions and 4 deletions

View File

@ -170,10 +170,12 @@ class TerminatorTerm (gtk.VBox):
def openurl (self, url): def openurl (self, url):
dbg ('openurl: viewing %s'%url) dbg ('openurl: viewing %s'%url)
try: try:
dbg ('openurl: calling xdg-open') try:
if subprocess.call(["xdg-open", url]) != 0: dbg ('openurl: calling xdg-open')
dbg ('openurl: xdg-open failed') subprocess.Popen(["xdg-open", url])
raise except:
dbg ('openurl: xdg-open failed')
raise
except: except:
try: try:
dbg ('openurl: calling url_show') dbg ('openurl: calling url_show')