Download page Adding or Changing a MIME Type Handler.
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