JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Desktop Administrator's Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Administering the Oracle Solaris Desktop

2.  Managing User Preferences With GConf

3.  Customizing Menus

4.  Installing Themes

5.  Customizing Fonts

6.  Working With MIME Types

MIME Types Overview

About the MIME Database

MIME Database Contents

Refreshing the MIME Database

Understanding MIME Type XML Files

Modifying MIME Types

How to Add or Modify MIME Types

Registering Applications for MIME Types

How to Register Applications for MIME Types

How to Associate a MIME Type With an Application

7.  Managing Screensavers

8.  Managing Sessions

9.  Overview of the Yelp Help Browser

10.  Improving the Performance of the Oracle Solaris Desktop System

11.  Disabling Features in the Oracle Solaris Desktop System

12.  Working With the X Window System

A.  Hidden Directories

Glossary

Index

About the MIME Database

The MIME database is a collection of files that include the following information:

The MIME database is created from the set of files located in the $XDG_DATA_HOME/mime and $XDG_DATA_DIRS/mime directories. If the environment variables are not set, then the default values are ~/.local/share and /usr/local/share:/usr/share respectively.

This guide uses <MIME> to refer collectively to these directories. If conflicting information for the same MIME type is found, the information in the file that is found first takes precedence.

For example, assuming default paths for the environment variables, an instruction to load the <MIME>/text/plain.xml file, loads the following files:


Note - The XDG shared mime info specification was drafted by the X Desktop Group, and the specification makes use of the XDG base directory specification.


MIME Database Contents

The MIME database contains the following directories and files:

The following is a list of MIME directories and files in the MIME database with a brief description:

Refreshing the MIME Database

To add new MIME types to the system or to modify information about a MIME type, you need to understand how to refresh the MIME database. To refresh the MIME database, use the update-mime-database application. For example, if an application installs information about a new MIME type to the /usr/share/mime/packages/diff.xml file, the update-mime-database application must be invoked with the /usr/share/mime parameter.

# update-mime-database /usr/share/mime
***
* Updating MIME database in /usr/share/mime...
***

The MIME database is refreshed by scanning all the source XML files in the <MIME>/packages directory.