I have successfully created a snap package and it works fine. I've also created a .desktop file for the app. But when I install the snap app, the .desktop file is not automatically copied to "usr/share/applications" folder, which is were it must be so the user can choose the app when using "Open with". I have read the snapcraft documentation but couldn't find any answer for that. How could I make the app visible on "Open with"? Thanks!
Asked
Active
Viewed 364 times
1 Answers
0
Sorry, it's a bit hidden in the documentation under "Commands, daemons, & assets". Just below the command:
line for your application, add a desktop:
line that specifies the path to the .desktop file inside the snap.

Evan
- 101
- 3
-
I already have a desktop file inside snap/gui folder. That should do the trick, right? I also tried to specify it manually like you explained, but neither way my application is visible under "Open with" option in Ubuntu. If I create the .desktop file manually and paste it into applications folder it work, but that's not user-friendly – dnr1 May 12 '17 at 16:51