I want to create desktop entry for Inkscape AppImage. I'm having some issues because I don't have all MimeTypes or an clear idea about running that kind of app on desktop entry.
Does anyone knows how can I achieve such thing?
You can do it manually, or you can do it like it's described here: Registering AppImage Files as a desktop app.
Since you want to do it manually, you can do it like this.
chmod +x inkscape.AppImage.~/.local/bin.inkscape.AppImage --appimage-extract; a directory will be created called squashfs-root in the directory where the AppImage was extracted.squashfs-root and copy the desktop launcher org.inkscape.Inkscape.desktop to ~/.local/share/applications; then edit the desktop launcher to point to the path of the AppImage, i.e., Exec=$HOME/.local/bin/inkscape.AppImage.squashfs-root.Note: The AppImage file name doesn't have to have .AppImage; the system will know what it is. If the icon isn't displayed, the icon theme you're using is missing the file org.inkscape.Inkscape. You can also edit the desktop launcher to use whatever icon is provided by the icon theme.
First, make sure it is executable: chmod u+x Inkscape.AppImage
Then, you would format your desktop file like this:
[Desktop Entry]
Name=InkScape
Exec=/path/to/appimage.AppImage
Icon=Inkscape
Type=Application
Categories=GTK;GNOME;Utility;
This is what worked for me.
Download Inkscape-xxx.AppImage from inkscape.org.
Copy it to /opt/inkscape/ folder and rename it to
Inkscape.AppImage
Make it executable chmod u+x Inkscape.AppImage
Download inkscape-logo.svg file and copy it to /opt/inkscape/
Create a a new file ~/.local/share/application/inkscape.desktop
with the following entries.
[Desktop Entry]
Name=Inkscape
Exec=/opt/inkscape/Inkscape.AppImage %u
Icon=/opt/inkscape/inkscape-logo.svg
Comment=Draw Freely
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Utility;
StartupNotify=true
StartupWMClass=org.inkscape.Inkscape
Note: StartupWMClass=org.inkscape.Inkscape is very important to associate the running instance to the .desktop launcher. Also %u parameter at the end of Exec field is to list the application in the open with applications list.
To find the StartupWMClass entry of your application use
xprop | grep WM_CLASS in terminal and click on your application's window