Sorry if this is not the correct component, it's difficult to choose the right one especially when the description in most cases is just a repetition of the component name, or even less. SUMMARY On Manjaro Linux KDE Edition, I have Telegram Desktop installed via the AUR. It has a tray icon which is white, as one would expect given it's on a dark background. However, after some time, seemingly randomly, it switches to a black icon, which is almost invisible on that same dark background. I initially assumed it was a bug in the application itself, or perhaps the AUR package, but here's what the Telegram developers said: > This icon recoloring happens on Plasma side, so this is likely to be a Plasma bug > As I said, Telegram is unaware of this recoloring, thus I don't imagine what we can do here. (to which I objected that it happens with no other icon besides theirs, and interestingly they replied) > It's the other way around I believe. The svg on hard disk is black and Plasma applies its black magic to some of them to make them follow the color scheme. It's a non-standard thing and no other DE does this. STEPS TO REPRODUCE 1. install Telegram Desktop 2. run Telegram Desktop 3. wait OBSERVED RESULT The tray icon should always remain visible EXPECTED RESULT Sometimes the tray icon, which is normally white, becomes black, and therefore almost invisible on the dark background. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.15.71-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz Memory: 7.3 GiB of RAM Graphics Processor: Mesa Intel® Iris® Plus Graphics Manufacturer: LENOVO Product Name: 81WE System Version: IdeaPad 3 15IIL05
*** Bug 460182 has been marked as a duplicate of this bug. ***
Duplicate report is also using Telegram from AUR, hmm.
I managed to replicate this bug 100% times. You can see the proper white Telegram icon in the system tray just when you don't have internet connection. Try disabling your wifi or internet adapter, reboot your machine, and it works properly, but as soon as you connect to the internet, it becomes dark again.
I can't reproduce that with Telegram from the Fedora package, Are you using Telegram from AUR as well?
For what it's worth: I use the package from AUR, I experience the issue pretty often (daily or weekly), but I am not able to reproduce it at will as described in comment 3, or in any other way that I know of, for that matter. I suspect the issue is triggered by some state change that causes the tray icon to change, but it's not just _any_ icon change. I have seen the icon change without becoming black.
> Duplicate report is also using Telegram from AUR, hmm. > (replying to comment 3) Are you using Telegram from AUR as well? The author of comment 3 is the author of the duplicate report, who said they're using the package from AUR.
Any ideas, Antonio?
Created attachment 153036 [details] Telegram flatpak I just installed the flatpak version (which is supported by Telegram if I'm not wrong) and something very interesting happens. The flatpak icon is the traditional blue telegram icon, but as soon as I logged into my account on the flatpak version, the AUR package colored properly now! Take a look at the attachment.
I uninstalled the flatpak package now and the bug still happens.
(In reply to Nate Graham from comment #7) > Any ideas, Antonio? I have no idea what "the AUR telegram package" means. Anything else than the official telegram-desktop package from our repos is unsupported in Arch (and AFAICS none of the affected users are actually using Arch, so that's another layer of unsupported from my side). The only report we had about this downstream was actually from another Manjaro user.
Whoops! I don't know why I thought I had installed it from the AUR. The one I have installed is actually from the "Official Repositories (community)". Sorry about the confusion 🤦🤦
Created attachment 153044 [details] installed package (screenshot)
Created attachment 153046 [details] Arch Linux Package I'm sorry for being a total dumb. I don't know why I thought it was an AUR package as well. It is the official package from the Arch Repo. Take a look at my attachment.
Maybe https://invent.kde.org/plasma/plasma-workspace/-/blob/master/dataengines/statusnotifieritem/statusnotifieritemsource.cpp#L274-310 needs the same changes as https://invent.kde.org/plasma/plasma-workspace/-/commit/919207c0dd88b618a07a0daf09917b8e8912ed87?
This specific issue was fixed ages ago, but the general topic of Telegram's tray icon has kept on breaking and being fixed repeatedly. The current state is that it's broken again, but this time it looks like it was caused by a Telegram issue. See Bug 498361.
FWIW, tdesktop's tray icon code hasn't had a change in ages. The more likely causes are either changes in Qt or in Plasma. Due to the way people usually prefer to install tdesktop (portable packages rather than distro repos, as repos update rarely in stable distros), it's usually unable to use Plasma's Qt integration plugins and thus uses Qt's own tray implementation which results in a different behavior than other Qt apps (that are installed from distro repos and use plasma-integration). Still, it's all driven mostly by interactions between Qt and Plasma, not tdesktop.
I've just realized I stopped observing this issue quite some time ago. It was probably when I stopped using the package and switched to Telegram Desktop's official binaries.