[wayland] only use Qt/wayland if available (#3545)
Some checks failed
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled

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:
Gautier Hattenberger
2025-10-03 15:10:44 +02:00
committed by GitHub
parent 41048101d0
commit 4f16ae0d56

View File

@@ -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)