Fallback if xdg-open returns nonzero too.
This commit is contained in:
parent
be92d94057
commit
2a9b782410
|
@ -91,7 +91,8 @@ except:
|
||||||
|
|
||||||
def openurl (url):
|
def openurl (url):
|
||||||
try:
|
try:
|
||||||
subprocess.call(["xdg-open", url])
|
if subprocess.call(["xdg-open", url]) != 0:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
url_show (url)
|
url_show (url)
|
||||||
|
|
Loading…
Reference in New Issue