Default applications

Setting the default application via filemanager
In many cases it suffices to use your file managers capability to set default applications for specific file types (e.g. vie right click). Please refer to your your file manager's specific manual.

Setting the default application via desktop environment
Bigger desktop environments like GNOME or KDE allow you to set default application by their own means.

With the other desktop environments, you can run xfce4-mime-settings from.

Setting the default application via mimeapps.list fils
MIME types describe the kind of content a file contains, which practically determines the applications to be used when opening or editing a file of a specific MIME type. While using a file manager or desktop environment to set default applications may work for the most basic cases (they edit mimeapps.list files for you), the most thorough way to associate file types and applications is by manually editing the MIME configuration files and using dedicated tools.

The location of mimeapps.list files and their precedence is specified by the Freedesktop standard

Looking up the default application of a specified MIME type
To find out the default application for directories use

Looking up MIME types associated with a specific application
To look up MIME types Inkscape is capable of working with use

Pitfalls
Few applications do not honor the Freedesktop standard.