How do I associate a file type with an appimage?
Solution 1:
Got this working on Mint 18.1 Cinnamon.
The .appimage of Krita 3.1.2 didn't add any file associations, so I created a file named krita.desktop, and put the following inside:
[Desktop Entry]
Encoding=UTF-8
Name=Krita
Comment=Krita, An open source painting and drawing application.
Exec=[path to .appimage] %F
Type=Application
Icon=[path to icon]
Categories=Graphics;
MimeType=image/krita;
I made that file executable, then copied it to /usr/share/applications.
Next I opened ~/.config/mimeapps.list, and appended:
image/krita=krita.desktop;
under the section [Added Associations]
Finally I right clicked a .kra file and chose Krita as the default app under Open With.
Hope that helps someone out.
Solution 2:
The next version of the Krita AppImage will come with desktop integration which should do this for you automatically.
You can try an alpha build: https://krita.org/en/item/krita-3-0-1-alpha-builds/