How do I change the default file manager back to Nautilus?

Solution 1:

This did it for me, after I google for a while:

xdg-mime default nautilus.desktop inode/directory application/x-gnome-saved-search

I also typed:

gsettings set org.gnome.desktop.background show-desktop-icons true

Solution 2:

I spent AGES trying to find a method that would work. Eventually I found this advice, which is incredibly easy, and worked for me:

Install exo-utils (this package contains the Xfce settings plugin and the utility files for libexo-2-0). Open a terminal and type:

sudo apt install exo-utils

Then run:

exo-preferred-applications

then switch to Utilities tab and select File Manager you prefer.

Solution 3:

The file manager choice is handled by a file in ~/.local/share/applications. They are mimeapps.list and mimeinfo.cache, deleting both of those files will reset your file manager to the default, which is Nautilus.

Solution 4:

  1. sudo mv /usr/bin/nemo /usr/bin/nemo.backup
  2. Open any folder. You could use xdg-open /path/to/folder/ while in the command line, for example. Or you could use a X application that requests a file.
  3. A dialog should appear to you requesting a default application to be your file manager. Type /usr/bin/nautilus there and confirm.

After that, as long as you don't rename nemo to its original name/location, nautilus will be your default file manager again.