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 Thu 02 Oct 2014, 12:57
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 Posts_count  
Author Message
Dougal


Joined: 19 Oct 2005
Posts: 2505
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:
Code:
# 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:

Code:
MYDESK=/root/Choices/Desktop
for SCRIPT in "$MYDESK"/*
do
   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"
   fi
done

(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...
refresh-pin.sh.gz
Description 
gz

 Download 
Filename  refresh-pin.sh.gz 
Filesize  202 Bytes 
Downloaded  229 Time(s) 
desktop.gz
Description 
gz

 Download 
Filename  desktop.gz 
Filesize  466 Bytes 
Downloaded  239 Time(s) 
pinboard-changer.pup
Description 
pup

 Download 
Filename  pinboard-changer.pup 
Filesize  6.34 KB 
Downloaded  218 Time(s) 
Back to top
View user's profile Send_private_message 
MU


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

PostPosted: Tue 02 May 2006, 06:04    Post_subject:  

good work Very Happy
Added it here:
http://forum.puppylinux.net/viewtopic.php?p=460#460

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...

Mark
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0567s ][ Queries: 13 (0.0103s) ][ GZIP on ]