Shared MIME-info Database

X Desktop Group

Thomas Leonard

Alex Larsson

Seth Nickell

Keith Packard

Waldo Bastian


Table of Contents

Introduction
Version
What is this spec?
Language used in this specification
Overview of previous systems
KDE
GNOME
ROX
Unified system
Directory layout
The source XML files
The MEDIA/SUBTYPE.xml files
The glob files
The magic files
Security implications
User modification
References

Introduction

Version

This is version 0.9 of the Shared MIME-info Database spec, last updated 29 Jul 2002.

What is this spec?

Many programs and desktops use the MIME system[MIME] 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.

It is also useful to store information about each type, such as a textual description of it, or a list of applications that can be used to view or edit files of that type.

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 information is not duplicated. It is also helpful for application authors to only have to install new information in one place.

This specification attempts to unify the MIME database systems currently in use by GNOME[GNOME], KDE[KDE] and ROX[ROX], and provide room for future extensibility.

Language used in this specification

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.