FS#62594 - [telegram-desktop] GUI broken
Attached to Project:
Community Packages
Opened by Rin Cat (RinCat) - Friday, 10 May 2019, 16:39 GMT
Last edited by Jiachen Yang (farseerfc) - Thursday, 13 June 2019, 00:07 GMT
Opened by Rin Cat (RinCat) - Friday, 10 May 2019, 16:39 GMT
Last edited by Jiachen Yang (farseerfc) - Thursday, 13 June 2019, 00:07 GMT
|
Details
Description:
After updated form 1.6.7 to 1.7.0, the telegram-desktop shows a lot of freeze images. Icons and animation are also displayed incorrect. Additional info: package version: 1.7.0-1 Log: > telegram-desktop QApplication: invalid style override passed, ignoring it. Available styles: Breeze, Windows, Fusion [2019.05.10 12:13:46] Launched version: 1007000, install beta: [FALSE], alpha: 0, debug mode: [FALSE], test dc: [FALSE] [2019.05.10 12:13:46] Executable dir: /usr/bin/, name: telegram-desktop [2019.05.10 12:13:46] Initial working dir: XXX [2019.05.10 12:13:46] Working dir: XXX [2019.05.10 12:13:46] Command line: /usr/bin/telegram-desktop -startintray -noupdate -tosettings -workdir XXX [2019.05.10 12:13:46] Executable path before check: /usr/bin/telegram-desktop [2019.05.10 12:13:46] Logs started [2019.05.10 12:13:46] Connecting local socket to /tmp/XXXXX [2019.05.10 12:13:46] This is the only instance of Telegram, starting server and app... [2019.05.10 12:13:46] Moved logging from '/home/XXXX/log_start0.txt' to '/home/XXXX/log.txt'! [2019.05.10 12:13:46] Primary screen DPI: 112 [2019.05.10 12:13:46] Found non-trivial Device Pixel Ratio: 1.5 [2019.05.10 12:13:46] Environmental variables: QT_DEVICE_PIXEL_RATIO='' [2019.05.10 12:13:46] Environmental variables: QT_SCALE_FACTOR='' [2019.05.10 12:13:46] Environmental variables: QT_AUTO_SCREEN_SCALE_FACTOR='0' [2019.05.10 12:13:46] Environmental variables: QT_SCREEN_SCALE_FACTORS='DVI-D-0=1.5;HDMI-0=1.5;DP-0=1.5;DP-1=1.5;DVI-D-1=1.5;DP-2=1.5;' [2019.05.10 12:13:46] Font Error: could not resolve 'Open Sans' font, got 'Noto Sans'. [2019.05.10 12:13:46] Font Error: could not resolve 'Open Sans' font, got 'Noto Sans'. [2019.05.10 12:13:46] Font Error: could not resolve 'Open Sans Semibold' font, got 'Noto Sans'. [2019.05.10 12:13:46] Could not load 'ayatana-appindicator3' with version 1 :( [2019.05.10 12:13:46] Could not load 'appindicator3' with version 1 :( [2019.05.10 12:13:46] Error: failed to load 'gdk_x11_drawable_get_xdisplay' function! [2019.05.10 12:13:46] Getting DE, XDG_CURRENT_DESKTOP: 'KDE' [2019.05.10 12:13:46] Getting DE, DESKTOP_SESSION: '/usr/share/xsessions/plasma' [2019.05.10 12:13:46] Getting DE, KDE_SESSION_VERSION: '5' [2019.05.10 12:13:46] DE: KDE5 [2019.05.10 12:13:46] Tray Icon: Try Qt = [TRUE], Prefer appindicator = [FALSE] [2019.05.10 12:13:46] App Info: reading settings... [2019.05.10 12:13:46] App Info: reading encrypted settings... [2019.05.10 12:13:46] Lang Info: Loaded cached, keys: 2278 XXXX [2019.05.10 12:13:46] Using Qt tray icon. [2019.05.10 12:13:46] Tray Icon: Using Qt tray icon, available: [TRUE] [2019.05.10 12:13:46] Found Unity Launcher entry telegramdesktop.desktop! Steps to reproduce: Open telegram-desktop This seems related to Qt, but I don't have any Qt/xorg/driver need update when got 1.7.0. |
This task depends upon
Closed by Jiachen Yang (farseerfc)
Thursday, 13 June 2019, 00:07 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.7.7-2 as a patch to unset all QT scale environment variables. Now entered community repo.
Thursday, 13 June 2019, 00:07 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.7.7-2 as a patch to unset all QT scale environment variables. Now entered community repo.
Just did pacman -Syu and all packages up to date, and got the same result.
Mayybe related to Qt High DPI.
Telegram does UI scaling by itself (as can be seen from settings) and it seems that removing QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); messes things up.
Here is the package with PKGBUILD after applying the "0001-Fix-scaling.patch" patch on 1.7.7: https://build.archlinuxcn.org/~farseerfc/telegram-desktop/trunk/
Here is a screenshot of it with QT_SCALE_FACTOR=1.5: https://fars.ee/BKq7.png Notice there are lines for each rendered text.
These lines didn't appear on community/telegram-desktop 1.7.7 binary, although the rendered UI is still somewhat broken: https://fars.ee/6dhG.png
For now I suggest users with HiDPI display to manually unset the environment variables for telegram-desktop to disable HiDPI scaling.
This modified tdesktop.patch and tried to unset all QT screen scale related environment variables. The internal scale option in settings is still able to function properly.
I will try to reach some of my friends to test this before pushing this change to community-testing.