Go to main content

Oracle® Solaris 11.3 Desktop Administrator's Guide

Exit Print View

Updated: March 2018
 
 

How to Associate a MIME Type With an Application

  1. Add a menu item for the application.

    For more information about how to add an item to a menu, see How to Add a Menu.

  2. Add an icon for the application to the /usr/share/icons/theme-name/icon-size/apps directory.

    For more information about installing icons and themes, see Installing Icons for Themes.

  3. If the application uses a new MIME type, perform the following steps:
    1. Add a source XML file to the MIME database.

      For more information, see Modifying MIME Types.

    2. Add an icon for the MIME type to /usr/share/icons/theme-name/icon-size/mimetypes.

      For more information about icons and themes, see Installing Themes.

  4. To associate the application with a MIME type, include a MimeType key in your .desktop file.

    For more information, see Registering Applications for MIME Types.