Fix URL opening. Little too much removed in original port, meaning one click = two copies of page opened.
This commit is contained in:
parent
912545e5da
commit
1a435127f2
|
@ -1376,7 +1376,11 @@ class Terminal(Gtk.VBox):
|
||||||
except:
|
except:
|
||||||
dbg('custom url handler did not work, falling back to defaults')
|
dbg('custom url handler did not work, falling back to defaults')
|
||||||
|
|
||||||
|
try:
|
||||||
Gtk.show_uri(None, url, Gdk.CURRENT_TIME)
|
Gtk.show_uri(None, url, Gdk.CURRENT_TIME)
|
||||||
|
return
|
||||||
|
except:
|
||||||
|
dbg('Gtk.show_uri did not work, falling through to xdg-open')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.Popen(["xdg-open", url])
|
subprocess.Popen(["xdg-open", url])
|
||||||
|
|
Loading…
Reference in New Issue