|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris 11.1 Desktop Administrator's Guide Oracle Solaris 11.1 Information Library|
Applications are registered by creating a MimeType key in the .desktop entry file and listing each MIME type separated by a semicolon. The MimeType key should only be used in the .desktop files whose Type key has Application as value. For more information about .desktop files, see How to Add or Modify MIME Types.
Note - The MimeType key should only be used in the .desktop files whose Type key has Application as the value. For more information about .desktop files, see Working With Desktop Entry Files.
This command creates or updates the mimeinfo.cache file in the same directory as the .desktop file. This cache file is used to facilitate MIME type searches.
The defaults.list file is a plain text file that specifies the default application to use for specific MIME types. Each line in the file consists of the MIME type, the = symbol and the Desktop File ID, which is the filename for the desktop entry file. For more information, see Example 6-3.
Note - Registering MIME types for applications is part of the XDG desktop entry specification rather than the shared mime info specification. For more information, see http://www.freedesktop.org/wiki/Standards/desktop-entry-spec.
Example 6-3 A User's defaults.list File
[Default Applications] application/pdf=evince.desktop text/html=epiphany.desktop text/plain=gedit.desktop image/jpeg=eog.desktop image/png=eog.desktop text/xml=gedit.desktop
For more information about how to add an item to a menu, see How to Add a Menu.
For more information about installing icons and themes, see Installing Icons for Themes.
For more information, see Registering Applications for MIME Types.