5

I installed Nemo using

sudo add-apt-repository ppa:webupd8team/nemo3
sudo apt update
sudo apt install nemo

Then I went to Preferred Application -> System -> File Manager -> Files

NOTE: Nemo like to call itself files

But it did not change the default file manager.

So, to double check I used my ubuntu mate bootable usb (try ubuntu). Used the same process to check if Nemo can be set to default file manager. But it is not working there either?

I would like to mention xdg-open $HOME open Nemo.

Should I change anything in /usr/share/applications/mate/ as I read somewhere that the application showed in Preferred Application are taken from this location.

If I need to change any file, what file do I need to change and what is the change?

What is the terminal solution?

Update 1

The Home and Computer icons in the Desktop is by Mate Tweak, and it created all the confusion. Mate Tweak generated Icons always open in Caja no matter what the default File Manager is.

But when I create a directory shortcut, it opens in Nemo by default.

  • 2
    Just to note: that ppa doesn't contain any packages for 18.04 – doug Jun 04 '18 at 13:27
  • By "default file manager" do you mean handling the desktop? Maybe read here - https://ubuntu-mate.community/t/use-nemo-instead-of-caja/4124 – doug Jun 04 '18 at 14:16

1 Answers1

5

xdg-open uses xdg-mime to determine the type of object to open and then searches for the default application for it.

$ xdg-mime query filetype $HOME
inode/directory

$ xdg-mime query default inode/directory
nautilus-folder-handler.desktop

You need to set default application with nemo.desktop file. You can find it in /usr/share/applications. Then

$ xdg-mime default nemo.desktop inode/directory

And try open any directory with xdg-open.

sattellite
  • 166
  • 5
  • Can you please give the steps of what I need to do. – Ahmad Ismail Jun 04 '18 at 13:46
  • Run command "xdg-mime default nemo.desktop inode/directory". It must solve your problem – sattellite Jun 04 '18 at 13:48
  • I ran this command, but when I go to Home or Computer, It opens in caja – Ahmad Ismail Jun 05 '18 at 03:33
  • I added an update in the question. If you can address that issue as well then it will be great. – Ahmad Ismail Jun 05 '18 at 04:02
  • @blueray sorry, but I cannot find solution. I think it will be in dconf-editor in org/mate/caja/... – sattellite Jun 05 '18 at 06:28
  • I found it on (dconf-editor) org/nemo/desktop/, computer-icon-visibility, home-icon-visibility, trash-icon-visibility etc. But apparently turning it on does not help in anyway. The repo i was using only comes with nemo without its DE. I did not know the file manager is so hardly coupled with the DE. org/nemo/desktop/ seems to be dead switches at these point. – Ahmad Ismail Jun 05 '18 at 09:09