diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 7da3799635..bea62aefa9 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1412,6 +1412,7 @@ def ensure_app(headless=True): os.environ['QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM'] = '1' if headless and iswindows: QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL, True) + disable_webengine_sandbox_if_needed() _store_app = QApplication(args) if headless and has_headless: _store_app.headless = True