Comment 2 for bug 1820338

Revision history for this message
Josh Goebel (ajoshguy) wrote :

I wouldn't so quickly assume this is an issue with Plank. I recently ran into this same thing. It seems the way Plank even knows which icons to show is the distributions .desktop files they ship, etc... and the name the Electron app sets must match some of the meta-data in the .desktop file.

In my case the key line of the .desktop file is:

```
StartupWMClass=atom
```

This had to match the name set using `app.setName`... If they did not match I got the generic Electron icon rather than the apps icon.

Good luck.