Got the embedded browser in the desktop app going again on Fedora 35.

master
Pacman Ghost 2 years ago
parent 7c4e01eeec
commit 5c19af124a
  1. 5
      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 )

Loading…
Cancel
Save