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
This is generally caused by the app doing something silly like changing its WM_CLASS or StartupWMClass values. Needs investigation.
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?
Good find. Yeah, this looks like an app bug, then.
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
Was the one that got pinned the one that had NoDisplay=true in it?
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