Skip to content

Commit 6e09861

Browse files
authored
Set QT_QPA_PLATFORM for Linux environment
it was originally in the i used chatgpt branch but its like 3 lines of code and i think i coded those three lines myself :0 not sure though. anyway kinda required because otherwise linux breaks
1 parent 9878760 commit 6e09861

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
from PySide6.QtCore import QTimer, QEvent, Qt
55
import qframelesswindow
66
import time
7+
import os
8+
9+
if (sys.platform == 'linux'):
10+
os.environ.setdefault("QT_QPA_PLATFORM", "xcb")
711

812
BOUNCE_FACTOR = 0.9
913
GRAVITY = 9.8
@@ -201,4 +205,4 @@ def update_physics(self):
201205
for win in wins:
202206
win.show()
203207
win.installEventFilter(win)
204-
app.exec()
208+
app.exec()

0 commit comments

Comments
 (0)