MIME keys file provide information about a MIME type that is used in the user interface. For example, the MIME keys file provides a description of a MIME type, and specifies an icon to represent files of that MIME type.
The following is a sample from a MIME keys file:
text/html description=HTML page icon_filename=gnome-text-html default_action_type=application short_list_application_ids_for_novice_user_level=mozilla,netscape,galeon category=Documents/World Wide Web
You must indent the keys in a MIME keys file with a tab character (\t).
Table 4–2 describes the most important keys in MIME keys files. Typically, the description key and the category key are localized.
Table 4–2 Keys in MIME Keys Files
Key |
Description |
---|---|
can_be_executable |
Specifies whether files of this MIME type can be executed. |
description |
Describes the MIME type. This description can be displayed in the file manager and other applications. |
icon_filename |
Specifies the filename of an icon to represent the MIME type. Does not specify the path to the filename, or the filename extension. This icon can be displayed in the file manager and other applications. |
default_action_type |
Specifies the category of action to take when a file of this MIME type is opened by the user. Enter application for this MIME type for most applications. |
short_list_application_ids _for_novice_user_level |
Specifies the application to use when a file of this MIME type is opened by a user. Specify one or more applications, in order of priority. The applications must also be registered in the application registry. |
category |
Specifies a category for the MIME type. The value
of this key determines the location of the MIME type in the |