mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
disable wayland again, but allow enabling it
Will add an entry to the known issues page.
This commit is contained in:
parent
18bd821a1f
commit
926f0c7929
1 changed files with 8 additions and 0 deletions
|
@ -477,6 +477,14 @@ def _run(argv: Optional[List[str]] = None, exec: bool = True) -> Optional[AnkiAp
|
|||
profiler = cProfile.Profile()
|
||||
profiler.enable()
|
||||
|
||||
if (
|
||||
getattr(sys, "frozen", False)
|
||||
and os.getenv("QT_QPA_PLATFORM") == "wayland"
|
||||
and not os.getenv("ANKI_WAYLAND")
|
||||
):
|
||||
# users need to opt in to wayland support, given the issues it has
|
||||
os.environ["QT_QPA_PLATFORM"] = "xcb"
|
||||
|
||||
# default to specified/system language before getting user's preference so that we can localize some more strings
|
||||
lang = anki.lang.get_def_lang(opts.lang)
|
||||
anki.lang.set_lang(lang[1])
|
||||
|
|
Loading…
Reference in a new issue