In Ubuntu 11.04 I usually edit my *.fig files by clicking on the icons. The application (script) which opened the file was texfig. This script was chosen by "open with..." in nautilus. But now there is no possibilities to choose other applications than the predefined ones appropriate to the mimetype. How can I define a default application (or a self made script) in nautilus for the x-xfig mimetype?
|
|
You can create a
After this you will see Textfig in your Open with other application tab, select it and when you double click the file you will be able to open it using your program. Just adjust the rest of the values a bit more to fit your needs. The %u will tell nautilus to execute it on the currently selected file. |
|||||||||
|
|
You need to specify a *.desktop file , place the file type you wanted to open. Firstly you need to get the mimetype of that file , e.g *.mkv use:
Now you modify default assosiated application , in Merge the following to that file:
This means you use
|
||||
|
|
|
|||||
|
|
I have cooked this little script to allow our users to open a file with a program of their choice. |
|||
|
|
|
If you're more GUI minded (like me), go to launchpad PPA and install Ubuntu-Tweak into your software repositories. As far as I and many others are concerned, it should be included in all distribution installation packages. One of the 'tweaks' is Nautilus, where you can change your file associations as before, including anything in usr/bin. Check it out at http://ubuntu-tweak.com/. |
|||
|
|
|
For the less technical advanced users you can do this:
|
||||
|
|