mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Default to X11 on Qt6 builds as well
Qt6 no longer appears to require QT_QPA_PLATFORM to be set. https://forums.ankiweb.net/t/blury-interface-with-gnome-wayland-and-fractional-scaling/19196/4
This commit is contained in:
parent
cf78a555c6
commit
7115caab13
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp
|
||||||
|
|
||||||
if (
|
if (
|
||||||
getattr(sys, "frozen", False)
|
getattr(sys, "frozen", False)
|
||||||
and os.getenv("QT_QPA_PLATFORM") == "wayland"
|
or (os.getenv("QT_QPA_PLATFORM") == "wayland" or os.getenv("WAYLAND_DISPLAY"))
|
||||||
and not os.getenv("ANKI_WAYLAND")
|
and not os.getenv("ANKI_WAYLAND")
|
||||||
):
|
):
|
||||||
# users need to opt in to wayland support, given the issues it has
|
# users need to opt in to wayland support, given the issues it has
|
||||||
|
|
Loading…
Reference in a new issue