Bug 457676 - Telegram icon in tray has wrong color when autostarted
Summary: Telegram icon in tray has wrong color when autostarted
Status: RESOLVED DUPLICATE of bug 425315
Alias: None
Product: plasmashell
Classification: Plasma
Component: XembedSNIProxy (show other bugs)
Version: 5.25.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-09 13:03 UTC by Timofey
Modified: 2022-08-11 19:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timofey 2022-08-09 13:03:51 UTC
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
Comment 1 Nate Graham 2022-08-09 13:12:58 UTC
This is going to end up being a bug in Telegram itself. Please report it to https://github.com/telegramdesktop/tdesktop/issues/. Thanks!
Comment 2 Timofey 2022-08-09 15:02:28 UTC
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
Comment 3 Timofey 2022-08-10 08:25:00 UTC
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
Comment 4 Nate Graham 2022-08-11 19:30:08 UTC

*** This bug has been marked as a duplicate of bug 425315 ***