PCmanFM misses the permission column in its detail view and the ability to set viewable columns. Because of this I switched to Thunar. Now I want to set it as my default file manger in LXDE. How to do this?
The simple way...
The quickest way is to create a pcmanfm shell script in
/usr/local/bin. This shell script will instead execute thunar
copy and paste the following:
#!/bin/sh thunar $* &
chmod 755 ~/pcmanfm sudo mv ~/pcmanfm /usr/local/bin
The disadvantage though of this method is that you will lose any desktop shortcuts because on login, pcmanfm is no longer being run on login.
A more interesting method would be to have the LXDE shell but with the XFCE desktop rather than the pcmanfm desktop
The reason for running with the xfdesktop is that it integrates with thunar whereas the pcmanfm desktop cannot be configured to launch folders stored on the desktop with thunar - only pcmanfm.
The recipe is as follows:
- Change the default file-manager shortcut: edit the file
/usr/share/applications/pcmanfm.desktopand change the line
- Change shortcut keys: using
leafpadchange all references of
thunarin the file
- Stop pcmanfm desktop being run on login: edit the file
/etc/xdg/lxsession/Lubuntu/autostartand change the line
@pcmanfm --desktop --profile lubuntuto
!@pcmanfm --desktop --profile lubuntu
- Create a startup-on-login folder: create a folder called
xfdesktopon login: create a file called
xfdesktop.desktopin this autostart folder with...
[Desktop Entry] Version=1.0 Type=Application Exec=xfdesktop Icon=help-contents StartupNotify=false Terminal=false Categories=Utility;X-XFCE;X-Xfce-Toplevel; Name=xfdesktop
- Install xfdesktop:
sudo apt-get install xfdesktop4
a third way...
If you don't want to run the xfdesktop - then follow the recipe above, but dont disable pcmanfm in
/etc/xdg/lxsession/Lubuntu/autostart and you also dont need to autostart
Obviously you are still left with the folder on desktop launching pcmanfm issue - but if you can live with this, this is a worthy compromise.
For how to change and restore Default File Manager, check the link: