add startup message about forcing Wayland

This commit is contained in:
Damien Elmes 2021-09-20 21:42:16 +10:00
parent cdad1efdcf
commit 66fc9cdbd8

View file

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