Adding or Changing a MIME Type Handler

Symptom

Files or protocols are opened with the wrong application.

Problem

The MIME type handler for the file type or the protocol is missing or misconfigured.

Solution

Change the MIME type handler or add a new one.

MIME type handlers are defined by *.desktop files in the /usr/share/applications.mime/ directory.

To add a new *.desktop file, use the following sample and edit it according to your needs:

[Desktop Entry]

Version=1.0

Encoding=UTF-8

Type=Application

Name=Browser//A name for the MIME type handler

Categories=Application

Exec=/usr/bin/firefox %u//The binary to execute on opening an associated file

MimeType=x-scheme-handler/http;x-scheme-handler/https;text/html;application/xhtml+xml;//A list of MIME types separated by semicolon

Terminal=false

StartupNotify=false

NoDisplay=true

You can find out more about *.desktop files in a specification at freedesktop.org.

These are the default handlers on IGEL Linux:

Images (opened via gpicview)

Videos and Music (opened via /services/mplr/bin/mediaplayer)

Note that /services/mplr/bin/mediaplayer calls either /config/sessions/mediaplayer0 if existent or totem if this is not the case

Documents (opened via /usr/bin/evince)

Web (opened via /usr/bin/firefox -remote)