[SOLVED] pcmanfm opens subdirectory instead of home directory
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
pcmanfm opens subdirectory instead of home directory
Using Openbox on Debian squeeze, an icon starts the pcmanfm 0.9.7 file manager at my wallpaper subdirectory (from which feh creates random wallpaper). I have not been able to find a way to open it initially to the home directory.
Fooling around with .config/pcmanfm/ has not helped (for reasons unknown to me, there are [desktop]wallpaper sections in both pcmanfm.conf and LXDE.conf).
Curiously, if pcmanfm is brought up with the command /usr/bin/pcmanfm in a terminal, it opens directly to home rather than to the subdirectory, which is how I would like to make it work.
I have tried editing it in various ways, to no effect. There is no clue as to why pcmanfm loaded from a terminal goes direct to the home directory, but loaded from the desktop icon it goes to the wallpaper subdirectory (and always goes back to it on reloading).
For me, /usr/bin/pcmanfm (or just pcmanfm) from the commandline seems to start in the current working directory. I don't have a desktop icon, but saving the the following as pcmanfm.desktop on my desktop and double-clicking it does start me in my home directory.
Thank you both for the help.
aus9, your selection of spacefm sounds great and seems like the way to go. Debian stable has not yet adopted it, but eventually I'll get to it, one way or another.
RockDoctor, your comment convinces me that my problem lies in the lxpanel file management icon at the foot of my openbox page. It is convenient to have that one-click icon to bring up the file manager, but not convenient for it to go to a sub-directory of HOME. I have found how to delete the icon with panel preferences obtained with the command "lxpanelctl config", but not how it is bound to the manager.
Solution: still don't understand the problem, but have eliminated it by replacing lxpanel with tint3; also by setting up short keys (such as W-f to bring up the file manager) instead of icons (although icons can be used in the tint3 panel).
Last edited by hilltownboy; 06-11-2012 at 08:45 AM.
Here's the actual fedora-pcmanfm.desktop file (minus the non-English Name, GenericName, and Comments on my system:
Comment=Browse the file system and manage the files
Placing this desktop file in ~/.local/share/applications/ with the name mypcmanfm.desktop and adding it to the panel may be a viable solution to your problem. I'd just manually edit the appropriate launchbar in ~/.config/lxpanel/LXDE/panels/panel so that it contained the code shown below (substituting your actual user name for <user-name>: