Skip to content

Commit

Permalink
Override QT_QPA_PLATFORM specifically on wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed Sep 20, 2024
1 parent eb4ccab commit 3e4e45d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
from src.config import Settings
from src.util import crash

# clientwindow has FramelessWindowHint flag with custom frame implementation,
# which doesn't work well with 'wayland'
os.environ["QT_QPA_PLATFORM"] = "xcb"
if os.getenv("XDG_SESSION_TYPE") == "wayland":
# clientwindow has FramelessWindowHint flag with custom frame implementation,
# which doesn't work well with 'wayland'
os.environ["QT_QPA_PLATFORM"] = "xcb"

# Some linux distros (like Gentoo) make package scripts available
# by copying and modifying them. This breaks path to our modules.
Expand Down

0 comments on commit 3e4e45d

Please sign in to comment.