Skip to content

Commit b6cca50

Browse files
committed
Disabling Qt XCB GL integration plugin
1 parent ed9243a commit b6cca50

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

pyinstaller.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ a = Analysis(
2727
hookspath=[],
2828
runtime_hooks=[
2929
'pyinstaller/pyi_rth_fontconfig.py',
30+
'pyinstaller/pyi_rth_qt_xcb.py',
3031
],
3132
excludes=['_tkinter', 'spyder'],
3233
win_no_prefer_redirects=False,

pyinstaller/pyi_rth_qt_xcb.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
import sys
3+
4+
# On Linux, force Qt to use EGL (or no GLX integration) rather than the
5+
# bundled libqxcb-glx-integration.so, which is built against the CI
6+
# environment's XCB/GLX stack and may be incompatible with the user's system.
7+
if sys.platform.startswith("linux"):
8+
os.environ.setdefault("QT_XCB_GL_INTEGRATION", "none")

0 commit comments

Comments
 (0)