LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-06-2012, 05:31 PM   #1
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 7 "wheezy", Arch, PCLinux, Crunchbang "waldorf"
Posts: 65

Rep: Reputation: 15
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.
 
Old 06-06-2012, 06:44 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
hi

I use spacefm.....a fork of pcmanfm and wonder if you can try this

-- open pcmanfm....navigate to your home folder...close and reopen pcmanfm

Hopefully pcmanfm remembers your last view?

2) otherwise that setting is somewhere else try searching for a config file

Code:
sudo find / -name pcmanfm
good luck
 
Old 06-08-2012, 08:52 AM   #3
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 7 "wheezy", Arch, PCLinux, Crunchbang "waldorf"
Posts: 65

Original Poster
Rep: Reputation: 15
This is the content of .config/pcmanfm:

[config]
bm_open_method=0

[volume]
mount_on_startup=1
mount_removable=1
autorun=1

[desktop]
wallpaper_mode=0
wallpaper=
desktop_bg=#000000
desktop_fg=#ffffff
desktop_shadow=#000000
show_wm_menu=0

[ui]
always_show_tabs=0
hide_close_btn=0
win_width=1278
win_height=749
splitter_pos=636
view_mode=3
show_hidden=1
sort_type=0
sort_by=2

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).
 
Old 06-08-2012, 07:00 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,210

Rep: Reputation: 238Reputation: 238Reputation: 238
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.
Code:
[Desktop Entry]
Type=Application
Exec=pcmanfm
Name=Pcmanfm
Maybe the exec line your desktop icon is executing is something like the following:
Code:
pcmanfm <walpaper-subdirectory>
 
Old 06-09-2012, 09:20 AM   #5
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 7 "wheezy", Arch, PCLinux, Crunchbang "waldorf"
Posts: 65

Original Poster
Rep: Reputation: 15
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.
 
Old 06-10-2012, 05:25 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,210

Rep: Reputation: 238Reputation: 238Reputation: 238
Here's the actual fedora-pcmanfm.desktop file (minus the non-English Name, GenericName, and Comments on my system:
Code:
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=File Manager
GenericName=File Manager
Comment=Browse the file system and manage the files
Exec=pcmanfm %U
StartupNotify=true
Terminal=false
MimeType=x-directory/normal;inode/directory;
X-Desktop-File-Install-Version=0.19
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>:
Code:
Button {
id=/home/<user-name>/.local/share/applications/mypcmanfm.desktop
}
 
Old 06-10-2012, 06:56 PM   #7
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
well it hasn't hit debian sid either but if interested try
http://sourceforge.net/projects/spacefm/files/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] deleting directory with files and subdirectory kawaikx15 Linux - Newbie 1 04-16-2012 09:33 PM
Move all files not in a directory into a subdirectory named for each given file Nix Linux - Newbie 10 12-24-2011 01:40 PM
vsftpd: Can a local user be restricted to a subdirectory in HOME granduke Linux - Server 1 05-01-2008 08:14 AM
Copying entire directory with subdirectory? centosfan Linux - Newbie 1 04-20-2007 09:14 PM
script for deleting .dat files which > 5 mb from a directory and its subdirectory anindyabhattacharjee Linux - Enterprise 2 01-15-2007 11:38 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration