4

I have updated my ubuntu from 12.10 to latest Ubuntu 13.04. everything is fine but when i go to Places and click any place, it opens in Disk Usage Analyzer by default and i found no way to either stop Disk usage analyzer permanantely or to change the default Application for Places. Please tell me how to set it default so that Places opens properly.

Please see the image, I open Places > Music folder but it opens in Disk Usage Anylyzer

I found similar question but the solution doesn't works for me as I do

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

MimeType=inode/directory;

with

MimeType=inode/directory:1;

and now everything opens in sublime-text

Note: I have many changes while i was using ubuntu 12.10 , still i am using session fallback desktop theme in latest ubuntu. does that affect?

neun24
  • 1,409
  • 1
  • 12
  • 14
xkeshav
  • 579
  • 1
  • 5
  • 19

4 Answers4

4

I had this problem on 14.04 using the gnome-session-fallback desktop. After trying the other solutions (removing MimeType=inode/directory; and editing /usr/share/applications/mimeinfo.cache) what actually fixed the problem was to run this command as your user:

xdg-mime default nautilus.desktop  inode/directory

By default it is set to use nautilus-folder-handler.desktop, which for some reason ends up launching the dreaded baobab.

richq
  • 954
2

When I went to https://bbs.archlinux.org/viewtopic.php?pid=1186209#p1186209 I've found the solution in there. Remove MimeType=inode/directory; from /usr/share/applications/baobab.desktop and run as root

update-desktop-database -q
guntbert
  • 13,134
user195161
  • 21
  • 3
1

I'm running Kubuntu 17.10 and had a similar problem (in my case, it opened git-cola). Thanks to richq's answer I figured out the problem, but the solution different enough to warrant a separate answer:

Open File Associations (if plasma search doesn't find it: System Settings under Applications).

Expand inode and find directory - type it in the top-left search to filter out the rest:

File Associations screen

In Application Preference Order, select the application you want to use.

If it isn't at the top already, move it up, click Apply and see if this fixes things.

Otherwise, click Edit..., and open the application tab.

The Command field (fourth from the top) is probably not pointing to the actual program, so fix that. Make sure you keep the %U at the end!

For example, for Dolphin, it should probably look like this:

Edit command path to Dolphin

If you do not know where your desired application is stored, open a terminal and run whereis <application> (it's probably in /usr/bin/).

Anyway, that fixed it for me, hopefully this works for others too.

Job
  • 133
0

I had the same problem when occasionally removed nautilus.

Trysudo dpkg-reconfigure nautilus

dds
  • 639