I've noticed a pattern over the years that I'm curious about. A surprising number of Linux applications, especially smaller projects on GitHub, seem to ship with an incorrect or missing StartupWMClass value in their .desktop file. The result is that when I launch the application from a pinned icon, the running window does not associate with it....