8
  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
malisokan
  • 1,007
  • 1
  • 13
  • 23
  • http://askubuntu.com/a/370119/179030 – Anıl Karaağaç Dec 26 '14 at 13:34
  • I replaced nautilus with nemo in /usr/share/applications/defaults.list and mimeinfo.cache but it still does not work – malisokan Dec 26 '14 at 14:12
  • 1
    try this http://askubuntu.com/a/260249/179030 – Anıl Karaağaç Dec 26 '14 at 14:26
  • 1
    Thnx this solution worked for me! I will update my question. – malisokan Dec 26 '14 at 20:42
  • This was fixed 4 years ago, but is an issue again with newer Firefox versions > v82. You'll need the dirty trick replacing the binary to make firefox work with nemo. – mondjunge Apr 16 '21 at 08:14
  • Just adding that nautilus might actually be called "Files" when you hit the "About" button. Took me a while to find out that this "Files" program is actually nautilus! (They write that only on their webpage, which you get using the "Help" button, I think. So it's really well hidden... – Prof.Chaos Aug 28 '22 at 04:58

3 Answers3

4

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 ...

Antonio
  • 1,594
  • This is of course valid if you previously set Nemo as default modifying the gsettings. Instructions are widely available on webupd8.com, noobslab.com etc ... – Antonio Jun 06 '16 at 22:02
3

This does the trick

sudo mv /usr/bin/nautilus /usr/bin/natilus.back && sudo ln -s /usr/bin/nemo /usr/bin/nautilus
malisokan
  • 1,007
  • 1
  • 13
  • 23
-1

Run the below command and check in which app the folder belongs too,

xdg-mime query default inode/directory

After doing so inorder to set nemo as your default try the below,

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

In order to check whether nemo has set as default use the below,

xdg-open $HOME
BDRSuite
  • 3,156
  • 1
  • 12
  • 11
  • 2
    Sry, this does not solve the problem. My default file manager is already Nemo. Output of xdg-mime query default inode/directory: nemo.desktop. Firefox still opens the download folder with Nautilus. – malisokan Dec 26 '14 at 12:58