Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Desktop Administrator's Guide Oracle Solaris 11.1 Information Library |
1. Administering the Oracle Solaris Desktop
2. Managing User Preferences With GConf
Understanding MIME Type XML Files
How to Add or Modify MIME Types
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
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.
The .desktop file must include a MimeType key whose value comprises each MIME type to be registered, separated by semicolons. For example: MimeType=text/html;text/css;text/x-javascript
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.
# update-desktop-database
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 Modifying MIME Types.
For more information on icons and themes, see Chapter 4, Installing Themes.
For more information, see Registering Applications for MIME Types.