mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
[wayland] only use Qt/wayland if available (#3545)
After #3528 and #3525, only try to use wayland if it is available. This is preventing a lot of warnings if the fallback option is used.
This commit is contained in:
committed by
GitHub
parent
41048101d0
commit
4f16ae0d56
@@ -4,7 +4,8 @@ import os
|
||||
import sys
|
||||
|
||||
# Make sure to use Wayland for high DPI screens
|
||||
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
|
||||
if os.environ["XDG_SESSION_TYPE"] == "wayland":
|
||||
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
|
||||
|
||||
dirname = os.path.dirname(os.path.abspath(__file__))
|
||||
PAPARAZZI_HOME = os.getenv("PAPARAZZI_HOME",dirname)
|
||||
|
||||
Reference in New Issue
Block a user