From 66fc9cdbd8e1b76eaff51467b882a97bcf826ad5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 20 Sep 2021 21:42:16 +1000 Subject: [PATCH] add startup message about forcing Wayland --- qt/aqt/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 82e87ed4d..2a84a181c 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -483,6 +483,8 @@ def _run(argv: Optional[List[str]] = None, exec: bool = True) -> Optional[AnkiAp and not os.getenv("ANKI_WAYLAND") ): # users need to opt in to wayland support, given the issues it has + print("Wayland support is disabled by default due to bugs.") + print("You can force it on with an env var: ANKI_WAYLAND=1") os.environ["QT_QPA_PLATFORM"] = "xcb" # default to specified/system language before getting user's preference so that we can localize some more strings