SUMMARY Telegram icon in tray has wrong color when autostarted STEPS TO REPRODUCE 1. Open Telegram 2. Go to Settings - Advanced, enable Launch Telegram when system starts and Launch minimized 3. Restart PC OBSERVED RESULT When Telegram was manually started, its icon in tray was white, but after restart it is black and invisible. It is white again if you exit and start it manually EXPECTED RESULT Both times the icon is white SOFTWARE/OS VERSIONS Linux/KDE Plasma: EndeavourOS (available in About System) KDE Plasma Version: 5.25.4 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 ADDITIONAL INFORMATION X11. Breeze Twilight theme, Breeze icon theme
This is going to end up being a bug in Telegram itself. Please report it to https://github.com/telegramdesktop/tdesktop/issues/. Thanks!
I believe that it's KDE bug After I enable autostart in Telegram's settings, it adds a .desktop file to ~/.config/autostart/. The only difference between it and the icon in apps menu is -autostart option. If I close app and run that command, the icon is white. If i copy the /usr/share/applications .desktop file to autostart, the icon is black on startup. Also, I replaced telegram icons in /usr/share/icons/breeze/status/22 and 24 with breeze-dark icons. Now the icon is white on autostart, but it is much thinner and ugly
I changed autostart command to `bash -c "sleep 1 && /usr/bin/telegram-desktop -workdir /home/enanas/.local/share/TelegramDesktop/ -autostart"`. Now it works perfectly. So that is probably some bug in Plasma, it has problems if apps are started too early
*** This bug has been marked as a duplicate of bug 425315 ***