Ubuntu – How to force Firefox to open downloads with new default file manager (Nemo)

14.04filemanagerfirefoxnautilusnemo

  1. I installed Ubuntu 14.04.
  2. Then I installed Nemo and configured it to be my new default file manager.

Most things works great, except for the browser Firefox. If I download a file and click in Firefox "Open Containing Folder", the browser will show the file with Nautilus and not with Nemo.

How to fix this?

My configuration to set Nemo to the default file manager:

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true

Output of xdg-mime query default inode/directory: nemo.desktop

The command xdg-open $HOME opens my home directory with Nemo.

Update:
This command does the trick:

sudo mv /usr/bin/nautilus /usr/bin/natilus.back && sudo ln -s /usr/bin/nemo /usr/bin/nautilus

Best Answer

This is an awkward, quick and dirty solution you advocate. You Can't use Nautilus anymore. If it's your intention then it's better to remove it for good.

$ sudo apt-get remove nautilus

Otherwise I believe the proper solution is to modify the defaults.list file located in /usr/share/applications as suggested here.

In Ubuntu Xenial 16.04 I did comment out the original line and replaced nautilus with nemo e.g.

#inode/directory=nautilus-folder-handler.desktop
inode/directory=nemo.desktop

Then just restart Firefox and you will be OK ...