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.

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

5 Answers 5

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

x-scheme-handler/file=exo-file-manager.desktop

from this file:

.local/share/applications/mimeapps.list

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

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

inode/directory=rhythmbox.desktop;vlc.desktop;smplayer.desktop;

and insert

inode/directory=nautilus-folder-handler.desktop;

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]
Encoding=UTF-8
Name=Guitar Pro 6
Comment=Tablature Edition Software
Exec=GuitarPro6 %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=GuitarPro6.png
Categories=Application;AudioVideo;
MimeType=audio/x-gtp;

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="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="audio/x-gtp">
        <comment>Guitar Pro tab</comment>
            <glob pattern="*.gpx"/>
            <glob pattern="*.gp3"/>
            <glob pattern="*.gp4"/>
            <glob pattern="*.gp5"/>
        </mime-type>
</mime-info>

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="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="office/vue">
<comment>Vue file</comment>
<glob pattern="*.vue"/>
<glob pattern="*.vpk"/>
</mime-type>
</mime-info>

And my *.desktop file is:

[Desktop Entry]
Encoding=UTF-8
Name=VUE
Categories=Office
Exec=java -jar /usr/share/VUE/VUE.jar
Icon=/usr/share/VUE/vue.gif
StartupNotify=false
Terminal=false
Type=Application
Comment=Visual Understanding Environment Application
StartupWMClass=tufts-vue-VUE
MimeType=office/vue

How can I fix this error?

Thanks in advance!


SOLVED

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!

Thanks!


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

 
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.