This commit is contained in:
Kovid Goyal 2023-11-25 13:06:48 +05:30
parent 23bbc95f96
commit d6f88ab9d0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1464,6 +1464,7 @@ def open_url(qurl):
ensure_app() ensure_app()
cmd = ['xdg-open', qurl.toLocalFile() if qurl.isLocalFile() else qurl.toString(QUrl.ComponentFormattingOption.FullyEncoded)] cmd = ['xdg-open', qurl.toLocalFile() if qurl.isLocalFile() else qurl.toString(QUrl.ComponentFormattingOption.FullyEncoded)]
if isfrozen and QApplication.instance().platformName() == "wayland": if isfrozen and QApplication.instance().platformName() == "wayland":
import subprocess
# See https://bugreports.qt.io/browse/QTBUG-119438 # See https://bugreports.qt.io/browse/QTBUG-119438
subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
ok = True ok = True