From aead00463c87a2715b86de39dd4f1766edb3657f Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 8 Sep 2008 20:42:26 +0100 Subject: [PATCH] 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 --- terminatorlib/terminatorterm.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 0091ec76..f8de9f63 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -170,10 +170,12 @@ class TerminatorTerm (gtk.VBox): def openurl (self, url): dbg ('openurl: viewing %s'%url) try: - dbg ('openurl: calling xdg-open') - if subprocess.call(["xdg-open", url]) != 0: - dbg ('openurl: xdg-open failed') - raise + try: + dbg ('openurl: calling xdg-open') + subprocess.Popen(["xdg-open", url]) + except: + dbg ('openurl: xdg-open failed') + raise except: try: dbg ('openurl: calling url_show')