We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10ca879 commit 7a47d0fCopy full SHA for 7a47d0f
1 file changed
run.py
@@ -1,6 +1,11 @@
1
import sys
2
+import os
3
import faulthandler
4
5
+# OCP's Xw_Window requires an X11 window ID, so we force XCB so winId() is valid under Wayland/XWayland.
6
+if sys.platform == "linux" and "QT_QPA_PLATFORM" not in os.environ:
7
+ os.environ["QT_QPA_PLATFORM"] = "xcb"
8
+
9
# PyInstaller with console=False sets sys.stdout/stderr to None on Windows
10
if sys.stdout is None:
11
sys.stdout = open("nul", "w")
0 commit comments