Bug 498361

Summary: Telegram uses a colorful icon instead of the symbolic one in system tray
Product: [Plasma] Breeze Reporter: Ilya Bizyaev <bizyaev>
Component: IconsAssignee: visual-design
Status: RESOLVED WORKSFORME    
Severity: normal CC: fedin-ilja2010, kainz.a, m, nate
Priority: NOR Keywords: regression
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=460159
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Ilya Bizyaev 2025-01-07 21:12:38 UTC
SUMMARY
This is a recent regression after system update.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250106
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-1-default (64-bit)
Graphics Platform: Wayland

Telegram Desktop 5.10.1

ADDITIONAL INFORMATION
Comment 1 Ilya Bizyaev 2025-01-07 21:13:46 UTC
Created attachment 177183 [details]
Screenshot
Comment 2 Nate Graham 2025-01-08 16:36:46 UTC
Can reproduce on git master. It's annoying how this keeps regressing. Will investigate.
Comment 3 Nate Graham 2025-01-08 19:12:43 UTC
Originally I thought this might be caused by https://invent.kde.org/plasma/plasma-workspace/-/commit/a713f2351ad7f9ea3b43d2ec436ff1f20d6c036a, but it seems not; if I revert that commit, the issue doesn't go away. Indeed, if I change the code in StatusNotifierIcon.qml to *force* the use of an icon name and disregard any pixmap icons, the tray item's icon disappears entirely. This indicates that the issue is actually within Telegram, which apparently now only provides us with a pixmap icon, and not an icon name as well, as was done in the past.

This may all be intentional on the part of Telegram. Worth talking to them about it.
Comment 4 Nate Graham 2025-01-09 22:04:32 UTC
As a hint from https://bugs.kde.org/show_bug.cgi?id=460159#c16, I tested both the Flathub package and the Fedora package and found something interesting: in both, the tray icon is colorful by default. However, I also happened to notice that upon turning on the tray icon in the settings window, a new setting named "Use monochrome icon" appears. In both apps, checking the checkbox for this setting causes it to use the Breeze-themed icon.

Can you reproduce that, Ilya?
Comment 5 Ilya Fedin 2025-01-09 23:33:21 UTC
I saw he said firefox theming is broken for him in the matrix chat, what causes it is likely the cause for this too if he is using tdesktop from a portable package cause plasma-integration couldn't be loaded and Qt likely falls back to gtk3 for things like icon theme
Comment 6 Ilya Bizyaev 2025-01-10 15:43:46 UTC
Indeed, the issue is gone since I rebooted with `GTK_USE_PORTAL
Comment 7 Ilya Bizyaev 2025-01-10 15:44:48 UTC
Indeed, the issue is gone since I rebooted with `GTK_USE_PORTAL` unset, and I didn't realize :)

Would've never guessed it was related
Comment 8 Ilya Fedin 2025-01-10 15:48:24 UTC
The gtk portal likely broke on your system for some reason (got removed?), that's why anything using gtk3 is unable to retrieve the settings with GTK_USE_PORTAL=1
Comment 9 Ilya Bizyaev 2025-01-15 11:06:39 UTC
You're right, openSUSE has now shipped updated xdg-desktop-portal packages that allow me to restore GTK_USE_PORTAL=1 without issues.