Implemented a workaround for a bug in QtWebEngine of Qt 6.2.0 beta3. eric7

Sun, 29 Aug 2021 12:40:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Aug 2021 12:40:12 +0200
branch
eric7
changeset 8552
f9cf1ff5126a
parent 8551
5611421bc868
child 8553
10d31e5ce9e5

Implemented a workaround for a bug in QtWebEngine of Qt 6.2.0 beta3.

eric7/eric7.py file | annotate | diff | comparison | revisions
eric7/eric7_browser.py file | annotate | diff | comparison | revisions
--- a/eric7/eric7.py	Sun Aug 29 12:07:44 2021 +0200
+++ b/eric7/eric7.py	Sun Aug 29 12:40:12 2021 +0200
@@ -42,6 +42,12 @@
         " it is installed and accessible.")
     sys.exit(100)
 
+# TODO: remove this workaround once issue is fixed
+# Workaround for a bug in Qt 6.2.0 beta3 on Linux
+if sys.platform.startswith("linux"):
+    libraryPath = QLibraryInfo.path(QLibraryInfo.LibraryPath.LibrariesPath)
+    os.environ["LD_LIBRARY_PATH"] = libraryPath
+
 with contextlib.suppress(ImportError):
     from PyQt6 import QtWebEngineWidgets
     # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
--- a/eric7/eric7_browser.py	Sun Aug 29 12:07:44 2021 +0200
+++ b/eric7/eric7_browser.py	Sun Aug 29 12:40:12 2021 +0200
@@ -35,6 +35,13 @@
             QSettings.Format.IniFormat, QSettings.Scope.UserScope, SettingsDir)
         sys.argv.remove(arg)
 
+# TODO: remove this workaround once issue is fixed
+# Workaround for a bug in Qt 6.2.0 beta3 on Linux
+if sys.platform.startswith("linux"):
+    from PyQt6.QtCore import QLibraryInfo
+    libraryPath = QLibraryInfo.path(QLibraryInfo.LibraryPath.LibrariesPath)
+    os.environ["LD_LIBRARY_PATH"] = libraryPath
+
 try:
     from PyQt6 import QtWebEngineWidgets    # __IGNORE_WARNING__
 except ImportError:

eric ide

mercurial