From 7115caab13937f134e8ff89e27f06680d6c41543 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 20 Apr 2022 14:41:01 +1000 Subject: [PATCH] Default to X11 on Qt6 builds as well Qt6 no longer appears to require QT_QPA_PLATFORM to be set. https://forums.ankiweb.net/t/blury-interface-with-gnome-wayland-and-fractional-scaling/19196/4 --- qt/aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index bb070ea67..2f2577b5c 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -495,7 +495,7 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp if ( getattr(sys, "frozen", False) - and os.getenv("QT_QPA_PLATFORM") == "wayland" + or (os.getenv("QT_QPA_PLATFORM") == "wayland" or os.getenv("WAYLAND_DISPLAY")) and not os.getenv("ANKI_WAYLAND") ): # users need to opt in to wayland support, given the issues it has