Adding icons on GNOME

If you use the GNOME desktop environment, you might have trouble with custom desktop entries. To fix them, add StartupWMClass at the end of your entries and set the value to the output of xprop, lg or wlprop.