From 806fb0f1022da385b47aa9b90fcf660962b914f3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Sep 2021 15:18:32 +1000 Subject: [PATCH] allow wayland again See #1368 --- qt/aqt/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 315df7fc6..d3567db06 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -477,10 +477,6 @@ 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": - # the packaged builds currently do not support wayland natively - 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])