Hello!

Telegram Desktop relies on xdg-desktop-portal to show a file dialog if
the org.freedesktop.portal.FileChooser interface is available. If not,
tdesktop fallbacks to QFileDialog from Qt. A distinctive attribute is
that the latter one has no preview. Upstream patched[1] Qt to display
the preview panel. A similar patch could be applied to system-wide Qt.

Most bugs you reported are not related directly to Telegram Desktop
source code. For instance, Telegram does remember a directory of last
chosen file but is not able to provide the directory to the integration
portals due to limitations[3] of their API.

Unfortunately, Telegram Desktop does not write to the log.txt file any
indications which file dialog is in use.

[1]: 
https://github.com/desktop-app/patches/blob/master/qtbase_5_15_2/0011-add-preview-support-to-gtk-file-dialog.patch
[2]: 
https://salsa.debian.org/debian/telegram-desktop/-/blob/a9ad183b61a1431180c4648f2271c3a801853995/Telegram/SourceFiles/platform/linux/linux_xdp_file_dialog.cpp#L292
[3]: 
https://flatpak.github.io/xdg-desktop-portal/#gdbus-method-org-freedesktop-portal-FileChooser.OpenFile

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

Reply via email to