mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
23bbc95f96
commit
d6f88ab9d0
@ -1464,6 +1464,7 @@ def open_url(qurl):
|
||||
ensure_app()
|
||||
cmd = ['xdg-open', qurl.toLocalFile() if qurl.isLocalFile() else qurl.toString(QUrl.ComponentFormattingOption.FullyEncoded)]
|
||||
if isfrozen and QApplication.instance().platformName() == "wayland":
|
||||
import subprocess
|
||||
# See https://bugreports.qt.io/browse/QTBUG-119438
|
||||
subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
ok = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user