Package Details: telegram-desktop-bin 5.0.1-1

Git Clone URL: https://aur.archlinux.org/telegram-desktop-bin.git (read-only, click to copy)
Package Base: telegram-desktop-bin
Description: Official desktop version of Telegram messaging app - Static binaries
Upstream URL: https://github.com/telegramdesktop/tdesktop
Keywords: messaging telegram telegram-desktop telegram-destop-bin
Licenses: GPL3
Conflicts: telegram-desktop
Provides: telegram-desktop
Submitter: ErnyTech
Maintainer: debendraoli
Last Packager: debendraoli
Votes: 37
Popularity: 2.51
First Submitted: 2022-01-05 14:44 (UTC)
Last Updated: 2024-05-05 00:13 (UTC)

Dependencies (10)

Required by (2)

Sources (10)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

debendraoli commented on 2023-10-09 07:53 (UTC) (edited on 2023-10-09 15:11 (UTC) by debendraoli)

Yes, QT_SCREEN_SCALE_FACTORS is what's it is meant for.

There is experimental settings on telegram which instructs telegram to follow QT global scaling setting.

Settings > Advanced settings -> Experimental settings > Enable Precise High DPI scaling.

kawazoe commented on 2023-10-08 21:07 (UTC)

@debendraoli Wouldn't that affect all applications started via DBus? The only reason this fix works for telegram is, ironically, because it has its own UI scaling settings. If it didn't, then you would be depending on that variable to scale its UI correctly. Doing so globally for all apps started via DBus might break other applications that depends on it.

Unless I'm missing something in my understanding of how DBus works?

debendraoli commented on 2023-10-08 04:31 (UTC)

The more permanent fix would be exporting environment variables before lunching dbus service. If it is not still respected, I will make changes on desktop file.

kawazoe commented on 2023-10-08 01:04 (UTC)

This package behavior is different from the official static binaries downloaded from the telegram website when it comes to HiDPI support. Telegram has its own UI scaling which conflict with KDE scaling and mangles every picture in the app. The official binaries seems to ignore the QT_SCREEN_SCALE_FACTORS environement variable which fixes the issue, but this package doesn't making it unusable when a fractional scaling (eg. 125%) setting is applied in KDE's display settings.

Patching the d-bus service with:

- Exec=/usr/bin/telegram-desktop
+ Exec=/usr/bin/env 'QT_SCREEN_SCALE_FACTORS=' /usr/bin/telegram-desktop

appears to do the trick, but needs to be reapplied at every update.

Could you implement a fix for this directly in the package?

debendraoli commented on 2023-10-04 08:54 (UTC)

I have updated the changes, should reflect on next version.

ilya-fedin commented on 2023-09-22 07:31 (UTC) (edited on 2023-09-22 07:35 (UTC) by ilya-fedin)

4.9.10 switches from /etc/tdesktop/externalupdater file to /usr/share/TelegramDesktop/externalupdater.d directory (where you can create a file with any name and the same content)

MarsSeed commented on 2023-08-23 15:18 (UTC)

+1: In addition, please kindly check if the following script is needed or may be removed (haven't verified it myself):

etc/tdesktop/externalupdater

MarsSeed commented on 2023-08-23 15:09 (UTC)

Please kindly delete the unneeded usr/share/kde4 directory, coming from upstream, from this package. As there is already the kde5-targeted equivalent in the release tarball (usr/share/kservices5/tg.protocol).

Also please remove the unneeded dependencies:

  • desktop-file-utils
  • libdbus

Please also add the following needed, direct, link-level dependencies:

Evidence:

$ namcap -i /var/cache/pacman-local/pkg/telegram-desktop-bin-4.8.10-1-x86_64.pkg.tar.zst

WARNING: ELF file ('usr/bin/telegram-desktop') lacks PIE.
WARNING: unneeded dependency on a package (desktop-file-utils) run when needed by hooks.
INFO: Soname 'ld-linux-x86-64.so=2-64' is not specified as provides by glibc yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libc.so=6-64' is not specified as provides by glibc yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libdl.so=2-64' is not specified as provides by glibc yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libm.so=6-64' is not specified as provides by glibc yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libpthread.so=0-64' is not specified as provides by glibc yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libX11-xcb.so=1-64' is not specified as provides by libx11 yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libX11.so=6-64' is not specified as provides by libx11 yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname 'libxcb.so=1-64' is not specified as provides by libxcb yet (needed in files ['usr/bin/telegram-desktop'])
INFO: Link-level dependence (fontconfig) in file ['usr/lib/libfontconfig.so.1']
INFO: Link-level dependence (freetype2) in file ['usr/lib/libfreetype.so.6']
INFO: Link-level dependence (glib2) in file ['usr/lib/libgobject-2.0.so.0', 'usr/lib/libglib-2.0.so.0', 'usr/lib/libgio-2.0.so.0']
INFO: Link-level dependence (glibc) in file ['usr/lib/libdl.so.2', 'usr/lib/libc.so.6', 'usr/lib/libm.so.6', 'usr/lib/ld-linux-x86-64.so.2', 'usr/lib/libpthread.so.0']
INFO: Link-level dependence (libglvnd) in file ['usr/lib/libGL.so.1', 'usr/lib/libEGL.so.1']
INFO: Link-level dependence (libx11) in file ['usr/lib/libX11.so.6', 'usr/lib/libX11-xcb.so.1']
INFO: Link-level dependence (libxcb) in file ['usr/lib/libxcb.so.1']
INFO: Soname dependency 'libfontconfig.so=1-64' provided by fontconfig detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libfreetype.so=6-64' provided by freetype2 detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libgio-2.0.so=0-64' provided by glib2 detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libglib-2.0.so=0-64' provided by glib2 detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libgobject-2.0.so=0-64' provided by glib2 detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libEGL.so=1-64' provided by libglvnd detected and not included (needed in files ['usr/bin/telegram-desktop'])
INFO: Soname dependency 'libGL.so=1-64' provided by libglvnd detected and not included (needed in files ['usr/bin/telegram-desktop'])

INFO: Soname depends as namcap sees them: depends=(glibc libEGL.so=1-64 libGL.so=1-64 libfontconfig.so=1-64 libfreetype.so=6-64 libgio-2.0.so=0-64 libglib-2.0.so=0-64 libgobject-2.0.so=0-64 libx11 libxcb)

INFO: Provides as namcap sees them: provides=()
INFO: Symlink (usr/share/kde4/services/tg.protocol) found that points to /usr/share/kservices5/tg.protocol
WARNING: Unused shared library '/usr/lib/libdl.so.2' by file ('usr/bin/telegram-desktop')
WARNING: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/bin/telegram-desktop')
WARNING: Dependency fontconfig detected and implicitly satisfied but optional (libraries ['usr/lib/libfontconfig.so.1'] needed in files ['usr/bin/telegram-desktop'])
WARNING: Dependency freetype2 detected and implicitly satisfied but optional (libraries ['usr/lib/libfreetype.so.6'] needed in files ['usr/bin/telegram-desktop'])
WARNING: Dependency libxcb detected and implicitly satisfied (libraries ['usr/lib/libxcb.so.1'] needed in files ['usr/bin/telegram-desktop'])
WARNING: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/libdl.so.2', 'usr/lib/libc.so.6', 'usr/lib/libm.so.6', 'usr/lib/ld-linux-x86-64.so.2', 'usr/lib/libpthread.so.0'] needed in files ['usr/bin/telegram-desktop'])
WARNING: Dependency libglvnd detected and implicitly satisfied but optional (libraries ['usr/lib/libGL.so.1', 'usr/lib/libEGL.so.1'] needed in files ['usr/bin/telegram-desktop'])
WARNING: Dependency included, but may not be needed ('desktop-file-utils')
WARNING: Dependency included, but may not be needed ('libdbus')
INFO: Dependency glib2 detected and satisfied (libraries ['usr/lib/libgobject-2.0.so.0', 'usr/lib/libglib-2.0.so.0', 'usr/lib/libgio-2.0.so.0'] needed in files ['usr/bin/telegram-desktop'])
INFO: Dependency hicolor-icon-theme detected and satisfied (needed for hicolor theme hierarchy)
INFO: Dependency libx11 detected and satisfied (libraries ['usr/lib/libX11.so.6', 'usr/lib/libX11-xcb.so.1'] needed in files ['usr/bin/telegram-desktop'])

INFO: Depends as namcap sees them: depends=(fontconfig freetype2 glib2 hicolor-icon-theme libxcb glibc libx11 libglvnd)

kart120 commented on 2023-08-17 08:13 (UTC)

4.9.1

kart120 commented on 2023-07-26 19:22 (UTC)

4.8.9