- Package:
- telegram-desktop
- Source:
- telegram-desktop
- Description:
- fast and secure messaging application
- Submitter:
- Andreas Tille
- Date:
- 2021-12-28 10:51:03 UTC
- Severity:
- normal
Hi,
after upgrading telegram-desktop from the version in testing (I'm using
a testing system) to the version in unstable (due to a warning by
telegram that version 2.6.1 will not be supported any more soon) to the
version in unstable the "old problem" that image preview does not work
any more is back now. I would be really happy if this could be solved
soon and I can happily test anything you want me to test.
Kind regards
Andreas.
Hi again,
I'd like to add an observation I do on another computer. At this
computer there is some preview of the images. However, the navigation
inside the file selection dialogue is broken. Usually the file
selection remembers the last directory and starts the selection process
there. Unfortunately this is not the case on that computer: It simply
presents a list of the last selected files and since I usually want to
send some new file I have to navigate starting from my home directory to
the place where I usually keep some images. I admit I prefered the
"clasical" way to start from the last directory where I picked files
from.
I have no idea why the file selection works differently on different
computers.
Kind regards
Andreas.
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
Hi,
Am Sat, Dec 18, 2021 at 02:42:39PM +0300 schrieb Nicholas Guriev:
established for "ages" in computer science and should simply work.
While telegram-desktop is the only program where *I* am confused on
upgrades several times this might be since I'm not using many Qt based
programs (knowingly). In case you consider Qt beeing the source of the
issues I'm facing it would be great if you could forward the issue to
the relevant package since I do not feel competent to spot the correct
code that causes this confusion. For me it simply becomes visible in
telegram-desktop - thus reporting it here.
Thanks a lot for your explanation and maintaining telegram-desktop anyway
Andreas.
It is okay. The code related to file dialogs was being rewritten several times in the near past. So from an end user's perspective, it looks like regression of the similar bug. And it is maintainer's duty to sort the issue out and forward bug to appropriate sub-system if needed. May I ask you to retest version 3.3.0+ds-2 of Telegram Desktop what is going on your two computers where different behavior was observed? In that version, yesterday I have extended logging[1]. And I would be grateful if you send back the log.txt file to check my guesses in the previous message. Please also tell me which versions of the following packages are installed if any: xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop- portal-gnome xdg-desktop-portal-kde Reportbug is preferable (but not mandatory), it will automatically gather mentioned information. [1]: https://sources.debian.org/src/telegram-desktop/3.3.0+ds-2/debian/patches/File-dialogs-logging.patch/
Hi Nicholas,
Am Mon, Dec 27, 2021 at 02:32:49PM +0300 schrieb Nicholas Guriev:
:-)
Both computers remain with the different and to my user experience
uncomfortable behaviour (= no change compared to the previous version
3.1.8+ds-1)
Where can I find this log.txt file?
$ dpkg --get-selections | grep ^xdg
xdg-dbus-proxy install
xdg-user-dirs install
xdg-utils install
Computer with preview but forgetting the latest dir that was browsed:
$ dpkg --get-selections | grep ^xdg
xdg-dbus-proxy install
xdg-desktop-portal install
xdg-desktop-portal-gtk install
xdg-user-dirs install
xdg-utils install
I'm using xfce on both computers.
I can for sure open a new bug report (or simply forward the information
created by reportbug here) if this helps.
Thanks a lot for maintaining telegram-desktop
Andreas.