mimbrero / whatsapp-desktop-linux

Unofficial WhatsApp Linux client built with Electron.
https://flathub.org/apps/details/io.github.mimbrero.WhatsAppDesktop
MIT License
78 stars 20 forks source link

Icon is duplicated on KDE Plasma Task Manager #34

Closed gchait closed 1 year ago

gchait commented 1 year ago

The program launches as a separate icon, unable to be pinned itself.

After some messing around with the AppImage and making a custom desktop file, I managed to find a solution. Since I'm still very new to all of this I don't know if this solution is acceptable or some kind of workaround to a larger issue.

This is the desktop file I have now:

[Desktop Entry]
Name=WhatsApp
Exec=/usr/local/bin/whatsapp %U
Type=Application
StartupWMClass=whatsapp-desktop-linux
Icon=io.github.mimbrero.WhatsAppDesktop
Comment=An unofficial WhatsApp client for Linux, built with Electron.
Terminal=false
Categories=Network;Chat;

Took some things from the Flatpak and others from Caprine as a working reference.

The particular line that seems to have fixed my issue and combined the icons is this one:

StartupWMClass=whatsapp-desktop-linux
mimbrero commented 1 year ago

Yes, that is the actual fix.

It is already implemented thanks to @hmlendea, but not released. Please wait for the next release so that it's fixed on your system :)