[desktop] Prefer X11, but allow Wayland (with a warning) (#4579)

Use `xcb;wayland` as the default value for `QT_QPA_PLATFORM` which will
always try X11 first, then only fallback to Wayland if, for some reason,
X11 is unavailable or unable to initialize.

This also prints a warning to the log if the backend is wayland. Might
be promoted to a warning dialog if this becomes a consistent-enough
issue to warrant a more obvious warning.

Requires removing the wayland hook from the AppImage

Signed-off-by: crueter <crueter@eden-emu.dev>

- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md).
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.

-------------------

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4579
Reviewed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
crueter 2026-11-02 23:40:12 +01:00
parent 060026dc2d
commit 9c3bdeffc0
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
10 changed files with 59 additions and 181 deletions

View file

@ -427,9 +427,6 @@ private slots:
void OnCreateHomeMenuApplicationMenuShortcut();
void OnCaptureScreenshot();
void OnCheckFirmwareDecryption();
#ifdef __unix__
void OnCheckGraphicsBackend();
#endif
void OnLanguageChanged(const QString& locale);
void OnMouseActivity();
bool OnShutdownBegin();