shared-mime-info-spec (original) (raw)

  1. Overview
  2. Shared MIME database package
  3. Tutorials
  4. Mailinglist
  5. Git
  6. Current status
  7. Full specification
  8. Current implementors
  9. Links to other specifications

Download: Download the MIME database package

Overview

Many programs and desktops use the MIME system to represent the types of files. Frequently, it is necessary to work out the correct MIME type for a file. This is generally done by examining the file's name or contents, and looking up the correct MIME type in a database.

For interoperability, it is useful for different programs to use the same database so that different programs agree on the type of a file, and new rules for determining the type apply to all programs.

Here you will find:

The system allows the following types of operation:

The system does not provide a mechanism for storing user preferences (Bob likes to view text/html files in Mozilla). See the ?MIME actions specification for that.

Shared MIME database package

The core database and the update-mime-database program for extending it are available from the software pages.

If you have added types that should go in the common freedesktop.org base list of types, you should create an enhancement request on the MIME bugtracker with your new XML file.

Tutorials

Application authors and users who want to extend the database should read the Adding to the database tutorial. This explains how to add information to the database such as:

Mailinglist

Discussion of this specification should occur on xdg.

Git

The Git module for this code is xdg/shared-mime-info.

Current status

The specification is now quite stable and not expected to change in incompatible ways. Integration with icon themes has not been finalised (and is not currently part of the specification).

Full specification

Current implementors