How to change home folder?

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
Sambuca
Posts: 4
Joined: Sun Feb 21, 2010 12:40 pm

How to change home folder?

Post by Sambuca »

Hi

I'm interested to know is there some way to change home folder?
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: How to change home folder?

Post by maces »

Hi,

Well this is very distro related and not depending on LXDE. When you want to change the path it's not possble, afaik (Well via linking maybe). If you want to have /home on a separate hdd/partition, it's working just fine.

maces
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: How to change home folder?

Post by IgnorantGuru »

I recently added this ability to my PCManFM 0.52 mod. You can set home_folder=FOLDER in ~/.config/pcmanfm/main in the [General] section.

http://igurublog.wordpress.com/downloads/mod-pcmanfm/
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
PCMan
Posts: 85
Joined: Mon Oct 06, 2008 9:52 am

Re: How to change home folder?

Post by PCMan »

The correct way to do this is modifying /etc/passwd or do this with user management tools.
And also the environment variable $HOME should point to the directory you want.
That's all.

There is nothing to do with the file manager and this shouldn't be a preference option since this just won't work for other programs.
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: How to change home folder?

Post by IgnorantGuru »

I could be mistaken but I think he means change which folder is defined as "home" for the Go|Home command and toolbar button. Many file managers let you set this to a custom folder.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
Sambuca
Posts: 4
Joined: Sun Feb 21, 2010 12:40 pm

Re: How to change home folder?

Post by Sambuca »

Yes I mean Go|Home command and toolbar button.
You can set home_folder=FOLDER in ~/.config/pcmanfm/main in the [General] section
And this no work :?
IgnorantGuru
Posts: 30
Joined: Sat Feb 27, 2010 7:35 pm
Contact:

Re: How to change home folder?

Post by IgnorantGuru »

You have to be using the mod of pcmanfm for the home_folder in main to work:
http://igurublog.wordpress.com/downloads/mod-pcmanfm/

Depending on how you install it, you may need to run "pcmanfm-mod" rather than pcmanfm ( check the About window to see if it says MODIFIED VERSION). Also note that the normal version of pcmanfm (0.5.2) will remove the home_folder setting from your main config file (it doesn't recognize it and will omit it when saving the config file).

And home_folder=FOLDER must be in the [General] section. Once that is done and you restart pcmanfm-mod then it should work.
Check out my blog for useful scripts, mods and tips... http://igurublog.wordpress.com
Locked