Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Maybe i don't understand the system. Upgraded to (reinstalled) Ubuntu 11.04.

Is there any way the applications can use something that i set in nautilus, or it's just a wrong idea about the usage?

In nautilus the file association works great, easy, handy and so on...

My first problem was when installed chromium. Downloaded a file, a popup ask for assocation, set nautilus. And it only opens folder, for any file show an error: it is not a direcrory. Ok, so i thought Google chrome changed, because previously .pdf open acrobat,.torrent open vuze and so on. But now i have to open nautilus on download folder with it, than select and open the preferable application by manually and can't use any automatism i used to.

Then in gnome commander , it not followed the default association i set in nautilus. Ok maybe it is commander fault. use it's own.

Then in calibre, the "read" use again this default "can't open its not a directory" error

So it's seems to me the applications not using well this file associations or i really don't understand the aim of file associations system (mime,.desktop files,...)

If there is no solution i think i have to search some program (if any exist's) which can identify and launch application and set as default instead nautilus.

share|improve this question

Comment out the line in .local/share/applications/mimeapps.list


and insert


share|improve this answer

Remove or comment out (by adding "#" in front of the line)


from this file:


Credits to How do I get Ubuntu to open folders with Nautilus by default? and UbuntuForums: Can't open files directly from Chrome - opens Nautilus for the link

share|improve this answer

You have to edit the .desktop file from that application and add the mime type

e.g. (the examples below are from an application that i had to fix myself)

[Desktop Entry]
Name=Guitar Pro 6
Comment=Tablature Edition Software
Exec=GuitarPro6 %u

The last line from the example shows the association.

If you want to create a new mimetype you should do this: Create a new file at /usr/share/mime/packages/

e.g. GuitarPro6.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="">
    <mime-type type="audio/x-gtp">
        <comment>Guitar Pro tab</comment>
            <glob pattern="*.gpx"/>
            <glob pattern="*.gp3"/>
            <glob pattern="*.gp4"/>
            <glob pattern="*.gp5"/>

After you create the file just run sudo update-mime-database /usr/share/mime/

share|improve this answer

I have a problem. I've created the vue.xml file for mime tipe, written the code line in the vue.desktop file, updated the mime tipe database with sudo update-mime-database /usr/share/mime/, but recived the error Unknown media type in type 'office/vue'!

My mime tipe file is:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="">
<mime-type type="office/vue">
<comment>Vue file</comment>
<glob pattern="*.vue"/>
<glob pattern="*.vpk"/>

And my *.desktop file is:

[Desktop Entry]
Exec=java -jar /usr/share/VUE/VUE.jar
Comment=Visual Understanding Environment Application

How can I fix this error?

Thanks in advance!


I have changed the <mime-type type="office/vue"> and MimeType=office/vue to <mime-type type="application/vue"> and MimeType=application/vue.

I can now sleep peacefully!


Why this hapened?

Once again, thanks!

share|improve this answer

I had the same problem. I found the solution on another forum.

To make short:

uninstall exo-utils (and all dependencies).

It worked for me!

share|improve this answer

Your Answer


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.