Ubuntu – How to set PcManFm as the default file manager

filemanagerpcmanfm

I think Nautilus is so slow, and I'd like to move to PCmanFM, but didn't find any good tips how to do this in Ubuntu 12.10.

I have PCmanFM installed already, and I even changed:

$ sudo gedit /usr/share/applications/nautilus-folder-handler.desktop

[Desktop Entry]
Name=Files
Comment=Access and organize files
Exec=pcmanfm %U
Icon=system-file-manager
Terminal=false
NoDisplay=true
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.1
X-Ubuntu-Gettext-Domain=nautilus

Still slow Nautilus is default one.

Best Answer

After struggling with this Nautilus' slowness for a while, I decided to change my default as well. All of the "proper" solutions I tried doing didn't work very well. For instance, choosing the default in exo-preferred-applications didn't update the dash (or much else for that matter), changing .desktop files only worked sometimes (Dropbox still used nautilus), etc.

The simple solution that works for me in all cases without mucking with changing desktop files was to do the following two commands:

sudo mv /usr/bin/nautilus /usr/bin/nautilus.bak
sudo ln -s /usr/bin/pcmanfm /usr/bin/nautilus

You can of course replace /usr/bin/pcmanfm with /usr/bin/thunar, or whatever.

Edit: If you also want to have a desktop, open /etc/xdg/autostart/nautilus-autostart.desktop and make the Exec line

Exec=nautilus --desktop
Related Question