Bug 491110 - When co-installed, Chromium and Ungoogled Chromium both show Ungoogled Chromium's red icon in the Task Manager and Notifications
Summary: When co-installed, Chromium and Ungoogled Chromium both show Ungoogled Chromi...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.1.3
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-01 10:41 UTC by Michal Kec (MiK)
Modified: 2024-12-21 10:40 UTC (History)
3 users (show)

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


Attachments
Different icons in taks switcher and panel (660.15 KB, image/png)
2024-08-01 10:41 UTC, Michal Kec (MiK)
Details
Two different icons during startup of one app (156.06 KB, video/mp4)
2024-08-08 13:58 UTC, Michal Kec (MiK)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Kec (MiK) 2024-08-01 10:41:14 UTC
Created attachment 172176 [details]
Different icons in taks switcher and panel

SUMMARY
After installing both Chromium (deb) and Ungoogled Chromium (flatpak), Plasma variously displays mismatched icons.

STEPS TO REPRODUCE
1. Install and run Chromium (I use ppa:savoury1/chromium repository).
2. Check the icons shown everywhere in Plasma. They should be default blueish Chromium logos.
3. Install and run Ungoogled Chromium https://flathub.org/cs/apps/io.github.ungoogled_software.ungoogled_chromium
2. Check the icons of both apps. Whereas Ungoogled Chromium should have redish icons as shown on Flathub page, original Chromium should keep its blueish logos.

OBSERVED RESULT
Blue and red Chromium icons are mixed in a different way:
1. Icons in app launcher (alt+f1) are correct.
2. Icons in app switcher (alt+tab) are correct as well.
3. Window icons (left upper windows corner) are correct.
3. Icons on "Icons-and-Text Task Manager" panel are only red.
4. Icons in notifications popped from the panel are only red. Moreover the notifications says "Ungoogled Chromium" even if the action was fired from Chromium (original).

EXPECTED RESULT
All icons everywhere in the Plasma UI is shown in respect to the application of origin.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-44-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450 AORUS PRO


ADDITIONAL INFORMATION
I never noticed such behavior until Plasma 6. Discovered in Plasma 6.0 till now. However Ungoogled Chromium used to have blueish icons those days: https://github.com/ungoogled-software/ungoogled-chromium-flatpak/issues/3
I use KDE Neon with Breeze Twilight theme and Oxygen iconset.
I use "Big icons" task switcher and Icons-and-Text Task Manager panel.
Comment 1 Nate Graham 2024-08-01 15:56:22 UTC
This is a quirk/bug (depending on how you want to define it) of the way KWin's task switcher works. It doesn't use the same icon heuristics as the Task Manager, which can cause mismatches between the two sometimes.
Comment 2 Nate Graham 2024-08-01 15:56:59 UTC

*** This bug has been marked as a duplicate of bug 459735 ***
Comment 3 Michal Kec (MiK) 2024-08-04 10:37:16 UTC
Hello Nate, thank you for considering this bugreport. However I'm not sure this issue is actually a duplicate.

1) bug 459735 is two years old. It is reported for Plasma version 5.25.5, but I noticed this behavior after upgrading to Plasma 6.

2) In bug 459735 comment 1 you stated "Task Manager icon uses the icon from the app's .desktop file". I've double checked my apps and both provide the correct icons in their respective .desktop files:

[mik@desktop applications]$ grep Icon chromium-browser.desktop
Icon=chromium-browser

[mik@desktop applications]$ grep Icon io.github.ungoogled_software.ungoogled_chromium.desktop
Icon=io.github.ungoogled_software.ungoogled_chromium

I believe this issue is not related to different heuristics for task switcher and Task Manager, it is a faulty heuristic in Task Manager. Otherwise I could fix it by editing the .desktop files right? Could you please reconsider your conclusion?
Comment 4 Nate Graham 2024-08-06 18:48:23 UTC
Ok, you're right, my mistake. I was skimming based on the title.

I can't reproduce the issue on Wayland. Dies it only happen to yo on X11, or on Wayland too?
Comment 5 Michal Kec (MiK) 2024-08-08 13:50:18 UTC
Hello Nate, thank you for your reconsideration!

Yes, I can reproduce the issue on both X11 and Wayland.
Comment 6 Michal Kec (MiK) 2024-08-08 13:58:38 UTC
Created attachment 172398 [details]
Two different icons during startup of one app

Two more observations, I've just noticed:

1. I had (original) Chromium open before logging out. I am using app session recovery. However, the next time I logged in, Ungoogled Chromium was restored.

2. When you start the (original) Chromium browser, you will see two different icons for a while. See attached video. Same for X11 & Wayland.
Comment 7 Michal Kec (MiK) 2024-12-21 10:40:34 UTC
I can confirm this bug has been fixed by upgrading to KDE Neon 6.2 (based on Ubuntu 24.04) and Plasma 6.2.2. All icons are correct in both X11 and Wayland. Thank you!