diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 2f2577b5c..a6cdd9b20 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) - or (os.getenv("QT_QPA_PLATFORM") == "wayland" or os.getenv("WAYLAND_DISPLAY")) + and (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