4

So this is a fun problem. After upgrading to Raring Ringtail, the open file command for nautilus on everything except the file browser in unity itself (opening downloads from browsers, clicking on removable media in unity) opens the Disk Usage Analyzer instead of nautilus. Is there a config file somewhere that chooses these defaults? I can't seem to find it.

6

edit /usr/share/applications/baobab.desktop and change

MimeType=inode/directory;

with

MimeType=inode/directory:1;

then run this command:

sudo update-desktop-database -q
| improve this answer | |
7

To me it seems the appropriate way is to define Nautilus as the default application to handle the mimetype inode/directory. This can be done via console with

xdg-mime default nautilus.desktop inode/directory

What it does is adding the following line to .local/share/applications/mimeapps.list

inode/directory=nautilus.desktop

About accepted answer: I don't know what adding a colon and a number to the mimetype in the baobab desktop file does, but if it's just disabling the unwanted behaviour this won't be sufficient. I can imagine another application hijacking/overriding the mimetype assocation again.

Another point is that you have all your defaults defined in one place.

| improve this answer | |
  • Works for me. Accepted solution doesn't. Thanks – user10853 Apr 30 '16 at 15:45
0

Open the file /usr/share/applications/baobab.desktop by issuing this command:

gksudo gedit /usr/share/applications/baobab.desktop

And remove this line:

MimeType=inode/directory;

Then save. If that fixes your problems, please take a minute to file a bugreport on Launchpad.

| improve this answer | |
  • Your suggestion will prevent baobab from advertising itself it's able to manage the inode mime type. This is not true and won't protect you from another program advertising itself being able to manage inode and stealing the association again. You have to define a default or elaborate why your defined defaults won't work. See Archlinux-Wiki – neun24 Jan 4 '15 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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