Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way / application to add a file extension / mime-type to the system. What I want to achieve is:

  • Have a default program for opening files of this type
  • Have a special icon for this filetype
  • let file output the type of a file of this file in a more specific way.

Is there an way to achieve this?

share|improve this question
    
@dv3500ea: But how to get this fancy icon in nautilus? –  FUZxxl Sep 19 '10 at 12:02
    
The link I gave you tells you how to do this at the bottom: <help.ubuntu.com/community/AddingMimeTypes#Adding%20an%20Icon>; –  dv3500ea Sep 19 '10 at 12:16

1 Answer 1

up vote 4 down vote accepted

You need to:

  1. Add a new mime type

  2. Associate that mime type with a program: xdg-mime default APPLICATION MIMETYPE(S) (see man xdg-mime for more details).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.