Google Chrome Flatpak tray icon issues in KDE

After installing Google Chrome from Bazaar, the tray icon for google chrome duplicates itself, with the original tray icon being able to spawn new chrome windows, but the active window not allowing for spawning of said windows.

This slightly messes up my workflow in browser and doesn't appear to effect Firefox or Brave Flatpaks.

I haven't tested Gnome, so I don't know if this is a bigger issue or not. Output of journalctl while opening Chrome is attached.
Solution
I have found a fix.

First, copy the .desktop file to your local applications folder. /var/lib/flatpak/app/com.google.Chrome/current/active/export/share/applications/com.google.Chrome.desktop ~/.local/share/applications/

Then edit the .desktop file in your favorite editor
/var/home/chaosmaou/.local/share/applications/com.google.Chrome.desktop

Add StartupWMClass=google-chrome underneath Name=Google Chrome under the [Desktop Entry] at the top of the file.

You must also then update both Exec= lines for both normal and incognitio modes, adding --class=com.google.Chrome before com.google.Chrome near the end of both lines:

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chrome --class=com.google.Chrome com.google.Chrome
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chrome --class=com.google.Chrome com.google.Chrome --incognito

Then save the file.
Was this page helpful?