Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Jan 2020, 23:55
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to change ROX's home icon path?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
GrantsV

Joined: 16 May 2007
Posts: 58

PostPosted: Sat 08 Dec 2007, 12:28    Post subject:  How to change ROX's home icon path?  

In the ROX Filer I want the home icon to take me somewhere else by default.

I read that there should be a file in /root/choices folder, but theres nothing inside I can see to alter.

Can anyone help me understand how to adjust this?
Thanks,
Colin
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Sat 08 Dec 2007, 19:54    Post subject:  

Home will be what ever the directory is that you startx from.

If you startx from /root, that will be ROX' home.

If you startx from /root and you want another 'home' or ROX start directory you could make a script as follows:

Code:
#!/bin/sh
cd /other/directory
rox


or

Code:
#!/bin/sh
rox /other/directory



Delete your current home icon from desktop, copy your new script to the desktop and for an icon you can you the default one at:

/usr/local/lib/X11/pixmaps/home48.png

Also use this same script if you start ROX from other locations such as the menu.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6997
Location: Auckland, New Zealand

PostPosted: Sat 08 Dec 2007, 20:10    Post subject:  

Quote:
If you startx from /root and you want another 'home' or ROX start directory you could make a script as follows:

Code:
#!/bin/sh
cd /other/directory
rox


or

Code:
#!/bin/sh
rox /other/directory



Delete your current home icon from desktop, copy your new script to the desktop and for an icon you can you the default one at:

/usr/local/lib/X11/pixmaps/home48.png

Also use this same script if you start ROX from other locations such as the menu.

Isn't this just dealing with the icon on the desktop - not the one on the ROX toolbar?

So we have to figure out some way to start X from somewhere other than ~?
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Sun 09 Dec 2007, 05:24    Post subject:  

disciple wrote:
Isn't this just dealing with the icon on the desktop - not the one on the ROX toolbar?


I didn't think GrantsV was talking about that icon.

disciple wrote:
So we have to figure out some way to start X from somewhere other than ~?


If we are talking about that icon, which it seems that we are. I think it gets home location from the HOME variable and we don't want to change it because other programs use it.

I searched the binary ROX-Filer and didn't see a text hack. A source code hack may be required.

Also, I went to the ROX site, there are some user addons, one of which may work, that seems to add user defined menu items. I'll leave it to GrantsV or others to look into that, but I do think it warrants attention.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6997
Location: Auckland, New Zealand

PostPosted: Mon 10 Dec 2007, 04:30    Post subject:  

It's funny that this isn't configurable - I would have thought it would be so easy to do that it would be Smile

The easiest hack would probably be to compile ROX for the button to point to a symlink (say /~/home), and by default have the symlink point to /~
If anyone wants it to point somewhere else they just make a new symlink.

(from the ROX users group) I think what we want is

Quote:
> my questions now are:
>
> *) is there a way to link the "home" button with that one directory
> where they are allowed to work? This directory is NOT the home directory
> of the user!!!

You could change toolbar_home_clicked() in toolbar.c. Why is the user's
data area not their home directory?

Changing $HOME is probably a bad idea, since lots of programs use it to
find their preferences.

rather than
Quote:
1. How to change the folder of the "home" button?
Just edit main.c of the ROX-Filer sources: where there is

home_dir = g_get_home_dir();

replace it with

home_dir = "/network/directory";

and recompile rox.
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Mon 10 Dec 2007, 04:54    Post subject:  

Disciple,

I just want to say, "Very good. Your idea seems solid and flexible."

Bruce
Back to top
View user's profile Send private message 
GrantsV

Joined: 16 May 2007
Posts: 58

PostPosted: Tue 11 Dec 2007, 10:39    Post subject:  

The recompile looks exactly what I need, shame it takes a full recompile to change that option, but glad we found an answer.
Many thanks for your effort in finding this!
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 9174
Location: Perth, Western Australia

PostPosted: Sat 05 Aug 2017, 06:46    Post subject:  

I have created a patch for ROX-Filer, for my experimental Easy Linux, to modify 'home_dir', see my blog post:

http://barryk.org/news/?viewDetailed=00638

I have also hard-coded it, but what we really should do is have the code read a file, say /etc/working-path, if that has something in it, then read it and assign to, well, in my patch I created a new variable 'easy_home_dir'.

If /etc/working-path is empty or does not exist, then set easy_home_dir to "~"

if anyone feels like creating that improved patch, go for it!

_________________
https://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0693s ][ Queries: 11 (0.0064s) ][ GZIP on ]