#1100613 telegram-desktop: Telegram fails to launch on sway window manager. Perhaps related to wlroots

Package:
telegram-desktop
Source:
telegram-desktop
Description:
fast and secure messaging application
Submitter:
Andrew Gunawan
Date:
2025-12-25 09:25:04 UTC
Severity:
normal
#1100613#5
Date:
2025-03-16 10:10:08 UTC
From:
To:
As the title says, telegram-desktop fails to launch while I'm using the
wlroots sway window manager. It works while I use i3 or GNOME-wayland.
Not sure what is causing this, but here is the command output when I
launch telegram-desktop from the terminal.


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.

fish: Job 1, 'telegram-desktop' terminated by signal SIGABRT (Abort)

#1100613#10
Date:
2025-04-02 06:06:59 UTC
From:
To:
Not much else to say here, but I hope this can be rectified.
#1100613#15
Date:
2025-04-15 00:35:55 UTC
From:
To:
So I managed to get telegram-desktop to launch on sway by installing
qtwayland5.
I think it would be good to include qtwayland5 in the dependencies or
recommends to prevent this issue from arising for others.

#1100613#20
Date:
2025-12-25 09:14:28 UTC
From:
To:
Hello!

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.