File types and programs

This capplet allows you to configure how files of various types should be handled. File type (formally called MIME type) describes what kind of data and in what format the file contains. For each of the file types, you can set the icon to be used by the File Manager, the default application to be used to open files of this type, etc. For example, file type image/jpeg is used for image files in JPEG format; by default, it is opened using File Manager's built-in graphics viewer.

Viewing available file types

The File types capplet shows you all file types currently known to Gnome. For each file type, it shows a short description (e.g., PDF document), the file type name (e.g., application/pdf), etc. Clicking on a file type in the list shows you more information about this gile type, namely:

NoteNOTE FOR ADVANCED USERS
 

In fact, Gnome File Manager can also use more elaborate methods of determining file type than just matching the extensions. Advanced users who want to know more about this should take a look at the file PREFIX/mime-info/gnome-vfs.mime, where PREFIX=/usr/share or /usr/local/share depending on your system's configuration.

Editing a file type

By far the most common type of editing a file type is changing the default action associated with a given file type. To do so:

  1. Click on the file type in the list.

  2. Select the type of default action (Use Viewer or Open with Application)

  3. Select the application/viewer you want to be the default from the drop-down list. If you don't see an application you want in this list, click on the Edit List button. It will show you the list of all application which are currently included in the pop-up menu for this file type. Now click on Add application button and enter the application name (e.g., Gnome PS viewer) and command used to launch this application (e.g., ggv).

You can also change other properties of a file type:

Adding and deleting file types

To delete a file type, select it in the file type list and press Delete this Mime type button. To add a new file type, press Add new Mime type button. You will be prompted to enter the file type name and description. It is strongly advised that you follow the MIME standard: file type name should be of the form type/subtype, where type is one of the following five standard types: text, audio,image, video, or application (the last one should be used if none of the first four are suitable).

After you have entered the file type name and description, the new file type is added to the list. Now you can select it in the list and choose an icon, file extensions and default action for this file type as described in the section called Editing a file type.

Restoring system defaults

If you (or someone else) did something wrong in this capplet, you can discard all your changes and restore the system default values for all the settings controlled by this capplet (i.e., file types, default actions, icons, etc). To do so, click on Revert to system defaults button. Note that this will erase all your changes; you can not "undo" this action.