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 23 Sep 2019, 09:03
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
(Primitively) Run Rox 2.4.1 Without background (+dotpup)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message

Joined: 19 Oct 2005
Posts: 2504
Location: Hell more grotesque than any medieval woodcut

PostPosted: Mon 01 May 2006, 14:30    Post subject:  (Primitively) Run Rox 2.4.1 Without background (+dotpup)  

Yesterday I read MU's comment to someone that he hadn't managed to hack Rox 2.4.1 to run without a background, so I got to thinking "why not use some other program for the pinboard?"
Due to my lack of knowledge the only other program I could think of was... the old rox.

I tried it and it worked!

Problems with this method:
1) Losing the advantages of the Rox 2.4.1 pinboard- like passing arguments to executables (no more "rxvt -rv"...).

2) You can't drag folders from a filer window to the desktop.
I've written a short script named "desktop" that can be added to the "send to" menu so you can choose "send to -> desktop" (sorry if this nomenclature cuases any flshbacks from another OS...)

3) If you link a folder, you will see an "executable" icon (instead of a "folder" icon) until you either (i) run my "refresh-pin" script (from the DotPup menu) or (ii) restart X.
(I tried adding the "refresh-pin" lines to the "desktop" script but it it did strange things so I gave up after a while...)

4) If you've alredy got a folder linked on the desktop, it'll open in the old rox. This can be fixed in the way "desktop" works, but it's much easier to just replace it with a new one...

Now, you can just install the attached dotpup or, if interested, look below how it's done. (If you download the dotpup you don't need the two scripts)
You need Rox 2.4.1 to be running already.

Very simple:
-Copy /root/my-roxapps/ROX-Filer/rox-old to /usr/local/bin and rename it "pinboard".
-Open /root/.xinitrc and in line 108 change "rox -p" to "pinboard -o -p"

You can do those manually or in a terminal:
# cp /root/my-roxapps/ROX-Filer/rox-old /usr/local/bin/pinboard
# echo "`sed "s/rox -p/pinboard -o -p/" /root/.xinitrc`" >/root/.xinitrc

(I used the -p in the sed command so that the "rox" in XFCE users' .xinitrc files don't get replaced)

Now restart X. There you go.

About my scripts:

The desktop script creates a folder /root/Choices/Desktop and into it places short scripts that contain "rox folder-to-open", then adds that script to the PuppyPin and globicons files and then refreshes the pinboard.

When you remove such a link from the desktop it only gets removed from PuppyPin. This just means that over time you'll get those little scripts accumulated and have globicons grow.
The dotpup installer appends /etc/rc.d/rc.local with a few lines to solve this.
Each script is checked against PuppyPin and if it's not there both it and it's entry in globicons are removed. Here:

for SCRIPT in "$MYDESK"/*
   if ! cat /root/Choices/ROX-Filer/PuppyPin | grep -q "$SCRIPT"; then
     TARGET="  <rule match=\""$SCRIPT"\">"
     NUM="`grep -n "$TARGET" /root/Choices/ROX-Filer/globicons | cut -d: -f1`"
     sed ""$NUM"d" /root/Choices/ROX-Filer/globicons | sed ""$NUM"d" | sed ""$NUM"d" >/tmp/globicons
     mv -f /tmp/globicons /root/Choices/ROX-Filer/globicons
     rm -f "$SCRIPT"

(Sorry about the crudeness, but I don't know awk.. also, an "if [ "$NUM" != "" ]" might be good before the sed line)

Now, MU, any chance of a hacked version of Rox 2.4.1 without the entire "pinboard" part? It could make the binary smaller...

Filename  refresh-pin.sh.gz 
Filesize  202 Bytes 
Downloaded  342 Time(s) 

Filename  desktop.gz 
Filesize  466 Bytes 
Downloaded  323 Time(s) 

Filename  pinboard-changer.pup 
Filesize  6.34 KB 
Downloaded  303 Time(s) 
Back to top
View user's profile Send private message 

Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Tue 02 May 2006, 06:04    Post subject:  

good work Very Happy
Added it here:

I think removing the pinboard from the source would not be trivial, as it is included in several files. Might be possible, but I currently have other projects to finish...

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0326s ][ Queries: 12 (0.0051s) ][ GZIP on ]