Image copy & paste from Telegram (flatpak) fails

When Telegram is installed as a flatpak, copying and pasting images from it doesn’t work – images are pasted with the right dimensions, but corrupted (mostly black). The official version (.tar.xz) works as expected.

Does anyone know of any specific configuration that can fix this?

1 Like

The issue there is that a flatpak is self-contained, with its own libraries, dependencies, etc. and they may not play well with the base OS. If your app is available on the base OS I suggest you use that instead.

If that is not possible then communicate your issue with the flatpak maintainer so the flatpak can keep up with changes in the base OS that cause these problems.

You can try running flatpak run --env=QT_QPA_PLATFORM=xcb org.telegram.desktop

It appeared to work for me.

If you need to make that permanent look at

flatpak override --user --env=QT_QPA_PLATFORM=xcb org.telegram.desktop

((that’s for a user install))

https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-override

Thanks

1 Like

Thanks @grumpey , that was right on point, that was exactly what I was looking for! Problem solved :smile:

Also, thanks for the reference to flatpak’s documentation :wink:

Hi @computersavvy , thanks for jumping in. I was aware of flatpak’s inherent restrictions, I was hoping for a solution through some specific settings – which, fortunately, does exist, see @grumpey 's reply above. Cheers!

PS: And, you’re right, I probably wouldn’t experience this issue with a RPM version, such as RPMFusion’s.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.