Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 13114  / 2 Years ago, sun, july 31, 2022, 5:50:08

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?


More From » 11.10

 Answers
5

The simple way...



The quickest way is to create a pcmanfm shell script in /usr/local/bin. This shell script will instead execute thunar



Thus:



nano ~/pcmanfm


copy and paste the following:



#!/bin/sh
thunar $* &


Save



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.



LXDE/XFCE Hybrid



A more interesting method would be to have the LXDE shell but with the XFCE desktop rather than the pcmanfm desktop



enter image description here



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.desktop and change the line Exec=pcmanfm %U to Exec=thunar %U

  • Change shortcut keys: using leafpad change all references of pcmanfm to thunar in the file ~/.config/openbox/lubuntu-rc.xml

  • Stop pcmanfm desktop being run on login: edit the file /etc/xdg/lxsession/Lubuntu/autostart and change the line @pcmanfm --desktop --profile lubuntu to !@pcmanfm --desktop --profile lubuntu

  • Create a startup-on-login folder: create a folder called ~/.config/autostart

  • Start xfdesktop on login: create a file called xfdesktop.desktop in this autostart folder with...



the contents



[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

  • reboot.



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



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.


[#42496] Sunday, July 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anatta

Total Points: 326
Total Questions: 128
Total Answers: 96

Location: Jordan
Member since Sun, Jun 26, 2022
2 Years ago
anatta questions
Sun, Jul 17, 22, 07:13, 2 Years ago
Sun, Jun 6, 21, 12:17, 3 Years ago
Sat, Jun 12, 21, 20:43, 3 Years ago
Thu, Jan 13, 22, 20:49, 2 Years ago
Sat, Jun 5, 21, 05:39, 3 Years ago
;