I'm using kdocker (I'm using GNOME though) for thunderbird and that works great. Now I've found this really nice desktop client for whatsapp and would like to start it at startup. There are 2 problems though: it's a snap app, so it takes ages to load and thus doesn't work well with kdocker (kdocker gives a timeout error and after that whatsdesk opens not minimized in the tray). The second issue is that it already has it's own icon in the system tray so kdocker adds a duplicate in any case.
As a workaround for now I'm running this script on startup:
#!/bin/bash
snap run whatsdesk &
sleep 10
wmctrl -c "Whatsdesk"
I was wondering though if there was a better way to do this, instead of opening the window and then killing the application (it minimizes in the tray even after being killed like this).