From 5c19af124a310f9e953d52cb27cf911e3eaf1c85 Mon Sep 17 00:00:00 2001 From: Taka Date: Sun, 13 Mar 2022 20:00:04 +1100 Subject: [PATCH] Got the embedded browser in the desktop app going again on Fedora 35. --- vasl_templates/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vasl_templates/main.py b/vasl_templates/main.py index 8124b41..8e1a603 100755 --- a/vasl_templates/main.py +++ b/vasl_templates/main.py @@ -34,6 +34,11 @@ from vasl_templates.webapp.utils import SimpleError, is_windows # QApplication.setAttribute( PyQt5.QtCore.Qt.AA_EnableHighDpiScaling, True ) # QApplication.setAttribute( PyQt5.QtCore.Qt.AA_UseHighDpiPixmaps, True ) +# FUDGE! We need this to get the embedded browser working on Fedora 35 (things were +# still OK on Windows, but setting this doesn't seem to hurt), and it needs to be done +# before creating the QApplication. +os.environ[ "QTWEBENGINE_CHROMIUM_FLAGS" ] = "--no-sandbox" + # FUDGE! This needs to be created before showing any UI elements e.g. an error message box. qt_app = QApplication( sys.argv )