mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
add startup message about forcing Wayland
This commit is contained in:
parent
cdad1efdcf
commit
66fc9cdbd8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue