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:
parent
fd8ad1bbea
commit
aead00463c
|
@ -169,9 +169,11 @@ class TerminatorTerm (gtk.VBox):
|
||||||
|
|
||||||
def openurl (self, url):
|
def openurl (self, url):
|
||||||
dbg ('openurl: viewing %s'%url)
|
dbg ('openurl: viewing %s'%url)
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
dbg ('openurl: calling xdg-open')
|
dbg ('openurl: calling xdg-open')
|
||||||
if subprocess.call(["xdg-open", url]) != 0:
|
subprocess.Popen(["xdg-open", url])
|
||||||
|
except:
|
||||||
dbg ('openurl: xdg-open failed')
|
dbg ('openurl: xdg-open failed')
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue