Friday, March 9, 2012

Folders Not Opened with the File Manager, all Ubuntus

Due to a number of possible causes - be it an oversight on your part, or a misbehaving application - you may end up in a situation where clicking on any folders in the "Places" menu or the Dash is either
  • invoking any other application than your preferred file manager (e.g. Nautilus), or
  • none at all, and instead an error message reg. no existing associations is displayed.
This can be easily fixed by just removing any custom associations - whether intended or not! - for the MIME type "inode/directory" from the concerning configuration files.

In any version of Ubuntu, run this command:

sed -i '/inode\/directory/d' ~/.local/share/applications/mimeapps.list

In any version prior to Natty 11.04, additionally run this, just to be sure:

sed -i '/inode\/directory/d' ~/.local/share/applications/defaults.list

That's all! Dead simple! :D

However, as indicated above, any intended custom associations would have to be set again. So you could instead opt to open these files with the text editor and fix any possible lines manually, that is, remove a possible line under "[Removed Associations]", and elsewhere, place the entry of your desired application in front of the line of associations and remove the rest.

Related Posts:

System , Troubleshooting