Do snap app .desktop icons get added to the launcher?

When a .desktop file is used with a snap project in the setup/gui directory. Does this mean that when the resulting snap is installed, an icon for the application will be added to the launcher, provided, of course, that the .desktop file is configured correctly?


Yes, but be aware that the icon in your snap won't be in one of the regular lookup directories for icons, so you'll want to include the full path to it in the Icon=field of your .desktop file. The easiest way to do this is to use the ${SNAP} variable there for the base path to your snap. For the executable, be sure it points to /snap/bin/{yourbinary} rather than something in ${SNAP}.

Here's an example you can follow.