This commit is contained in:
Kovid Goyal 2023-11-25 07:55:44 +05:30
parent 4a7c5dbd5a
commit 93bde3df4d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1467,6 +1467,7 @@ def open_url(qurl):
# this happens a lot with Qt 6.5.3 on some Linux distros # this happens a lot with Qt 6.5.3 on some Linux distros
print('QDesktopServices.openUrl() failed for url:', qurl, file=sys.stderr) print('QDesktopServices.openUrl() failed for url:', qurl, file=sys.stderr)
if islinux: if islinux:
import subprocess
if qurl.isLocalFile(): if qurl.isLocalFile():
cmd = ['xdg-open', qurl.toLocalFile()] cmd = ['xdg-open', qurl.toLocalFile()]
else: else: