Bug 507891 - Chrome Icon in Taskbar duplicate after launching - flatpak
Summary: Chrome Icon in Taskbar duplicate after launching - flatpak
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.4.3
Platform: Flatpak Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-05 10:15 UTC by Bernhard Friedreich
Modified: 2025-09-16 22:16 UTC (History)
3 users (show)

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


Attachments
duplicate chrome icon (10.25 KB, image/png)
2025-08-05 10:15 UTC, Bernhard Friedreich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Friedreich 2025-08-05 10:15:29 UTC
Created attachment 183799 [details]
duplicate chrome icon

SUMMARY


STEPS TO REPRODUCE
1. Install Google Chrome from official Google Chrome Repository
2. Add Chrome to taskbar
3. Launch Chrome from taskbar

OBSERVED RESULT
Started Chrome instance doesn't highlight the already existent icon in the taskbar but instead is listed as separate icon in the taskbar.

EXPECTED RESULT
Existing icon in the taskbar should be highlighted/used for running instances.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6300HQ CPU @ 2.30GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor 1: Intel® HD Graphics 530
Graphics Processor 2: NVIDIA GeForce GTX 960M


ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-08-08 17:48:24 UTC
This is generally caused by the app doing something silly like changing its WM_CLASS or StartupWMClass values. Needs investigation.
Comment 2 TraceyC 2025-08-18 23:11:38 UTC
Google packages two .desktop files

https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_139.0.7258.127-1_amd64.deb contains two .desktop files

google-chrome.desktop
com.google.Chrome.desktop

I'm guessing that's the cause?
Comment 3 Nate Graham 2025-08-19 17:21:24 UTC
Good find. Yeah, this looks like an app bug, then.
Comment 4 Bernhard Friedreich 2025-08-31 16:59:09 UTC
I can confirm that the rpm also contains two desktop files:
friedreb@hulk:~$ rpm -ql google-chrome-canary | grep desktop
/usr/share/applications/com.google.Chrome.canary.desktop
/usr/share/applications/google-chrome-canary.desktop

Diffing the two files it seems to me that we may still have a bug in plasma as it seems to me it should ignore NoDisplay=true desktop files in the taskmanager?

friedreb@hulk:~$ diff /usr/share/applications/com.google.Chrome.canary.desktop /usr/share/applications/google-chrome-canary.desktop
2,6d1
< # This is the same as google-chrome-canary.desktop except NoDisplay=true prevents
< # duplicate menu entries. This is required to match the application ID
< # used by XDG desktop portal, which has stricter naming requirements.
< # The old desktop file is kept to preserve default browser settings.
< NoDisplay=true
Comment 5 Nate Graham 2025-09-16 20:54:35 UTC
Was the one that got pinned the one that had NoDisplay=true in it?
Comment 6 Bernhard Friedreich 2025-09-16 21:34:43 UTC
Sorry I mixed stuff up, it is not the rpm duplicating the icons (the rpm version works correctly without duplicate icons) in the taskbar but the flatpak (had both installed for testing) 

About the desktop entry in the taskbar:

~/.config/plasma-org.kde.plasma.desktop-appletsrc
[Containments][2][Applets][5][Configuration][General]
launchers=applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred://filemanager,applications:org.kde.konsole.desktop,file:///var/lib/flatpak/exports/share/applications/com.google.Chrome.desktop,applications:jetbrains-studio.desktop,applications:jetbrains-idea-ce.desktop,applications:jetbrains-webstorm.desktop

friedreb@hulk:/var/lib/flatpak/exports/share/applications$ flatpak info com.google.Chrome

Google Chrome - The browser built to be yours

         Kennung: com.google.Chrome
             Ref: app/com.google.Chrome/x86_64/stable
     Architektur: x86_64
           Zweig: stable
         Version: 140.0.7339.127-1
          Lizenz: LicenseRef-proprietary
        Ursprung: flathub
        Sammlung: org.flathub.Stable
    Installation: system
     Installiert: 23,4 MB
Laufzeitumgebung: org.freedesktop.Platform/x86_64/24.08
             Sdk: org.freedesktop.Sdk/x86_64/24.08

          Commit: b9c966765b1c49beb13452cbac029c6296365d4977d6c3e547f831589480d829
          Parent: f5caa3ff7d3307b37743b80a7038e9cbf48db2e58bbb06a2fce89aa453dbb7a3
         Betreff: chrome: Update chrome.deb to 140.0.7339.127-1 (91f2e163b43c)
           Datum: 2025-09-11 02:43:32 +0000

friedreb@hulk:/var/lib/flatpak/exports/share/applications$ l
insgesamt 8
drwxr-xr-x. 1 root root  78 12. Sep 21:12 .
drwxr-xr-x. 1 root root  50  3. Aug 19:51 ..
lrwxrwxrwx. 1 root root  97 12. Sep 21:12 com.google.Chrome.desktop -> ../../../app/com.google.Chrome/current/active/export/share/applications/com.google.Chrome.desktop
-rw-r--r--. 1 root root 613 12. Sep 21:12 mimeinfo.cache

About your previous info about possible causes (WM_CLASS/StartupWMClass):
friedreb@hulk:/var/lib/flatpak/exports/share/applications$ grep -i class com.google.Chrome.desktop