Hello!

On Sun, 16 Mar 2025 18:10:08 +0800 Andrew Gunawan 
<[email protected]> wrote:
> qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
> This application failed to start because no Qt platform plugin could be 
> initialized. Reinstalling the application may fix this problem.
> 
> Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, 
> offscreen, vnc, xcb.

This looks strange because version 4.14.9+ds-1.1+b2 has a patch to prefer the
"xcb" platform plugin over Wayland.

https://salsa.debian.org/debian/telegram-desktop/-/blob/debian/4.14.9+ds-1.1/debian/patches/2018-Prefer-Xwayland.patch

For 5.7.2 upstream version the patch was rewritten a bit but its logic is still
the same. If the QT_QPA_PLATFORM environment variable is unset or empty, then
push an internal command line option -platform to "xcb;wayland". In that way,
Telegram should try X11 protocol first, even in DE based on Wayland.

Qt prints available platform plugins which are valid values of QT_QPA_PLATFORM.
Some of them may be not configured though.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to