Be even more defensive about URL handling. Closes LP #554571
This commit is contained in:
parent
fdf169a2fd
commit
838d27bb60
|
@ -1220,8 +1220,12 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
oldstyle = True
|
oldstyle = True
|
||||||
|
|
||||||
if oldstyle == False:
|
if oldstyle == False:
|
||||||
|
try:
|
||||||
gtk.show_uri(None, url, gtk.gdk.CURRENT_TIME)
|
gtk.show_uri(None, url, gtk.gdk.CURRENT_TIME)
|
||||||
else:
|
except:
|
||||||
|
oldstyle = True
|
||||||
|
|
||||||
|
if oldstyle == True:
|
||||||
dbg('Old gtk (%s,%s,%s), calling xdg-open' % gtk.gtk_version)
|
dbg('Old gtk (%s,%s,%s), calling xdg-open' % gtk.gtk_version)
|
||||||
try:
|
try:
|
||||||
subprocess.Popen(["xdg-open", url])
|
subprocess.Popen(["xdg-open", url])
|
||||||
|
|
Loading…
Reference in New Issue