Perform the following steps:
Start the File Associations
preference
tool.
Click on the Add File Type button.
Enter the properties of the file type in the Add File Type dialog.
The following table describes the dialog elements of the Add File Type dialog:
Dialog Element |
Description |
---|---|
No Icon |
Choose an icon to represent the file type. To choose an icon, click on the No Icon button. An icon selector dialog is displayed. Choose an icon from the dialog. Alternatively, to choose an icon from another directory, click Browse. When you choose an icon, click OK. |
Description |
Enter a description of the file type. |
MIME type |
Enter the MIME type for this type of file. |
Category |
Enter the category to which you want the file type to belong in this preference tool. Click on Choose to choose a category from the Choose a file category dialog, then click OK. |
Filename extensions |
Enter the file extensions to associate with the file type. Enter a file extension in the field on the left side, then press Return. To remove a file extension, select the file extension in the field on the right side, then click on the Remove button. |
Viewer component |
Use the drop-down list to select the viewer component to display files of this type in the file manager. |
Default action |
Use the drop-down to select the default application to open files of this type. |
Program to run |
Specify a program to associate with the file type. Enter the command to start the program. Alternatively, to choose a command that you entered previously, click the down arrow button, then choose the command. You can also use the Browse button to choose a command. |
Run in Terminal |
Select this option to run the program in a terminal window. Choose this option for a program that does not create a window in which to run. |
Click OK.