.desktop file not working

  1. You should not use the desktop keyword and the snap/gui directory together. Remove the desktop keyword; putting the files in snap/gui will do what you want.
  2. The icon isn’t showing because the names are different. argos-translate.png vs snapcraft-tkinter.png.
  3. The reason why you can’t launch the application is because the exec field specifies the argos-translate command instead of snapcraft-tkinter.

That should solve your issues. I also have some more tips:

  • It’s better to use the gnome-3-28 extension instead of the older desktop-glib-only part from desktop-helpers. The gnome-3-28 extension has better desktop integration, boots quicker and snaps built with it are smaller.
  • In general, we try to avoid using snapcraft and snap in the name of the snap because it’s redundant. snap install <app> will always install the snap of the app.
2 Likes