Multiple Rox Defaults


Forum: X and Fluxbox
Topic: Multiple Rox Defaults
started by: clivesay

Posted by clivesay on July 31 2004,16:36
All -

I am looking for a clue here. I want to use Rox for multiple icons. I want each icon to default to a different directory. I looked in the Rox manual and it talks about doing "rox /home" for example.

This works at the command line but I cannot get it to work from within the icon. I have tried many combinations with no luck. Anyone have any ideas? Thanks

Chris

Posted by ke4nt1 on Aug. 01 2004,00:08
That's cbagger01's contrib...  
One of his favs , nice extension...
Probably best to ask him when he returns...

73
ke4nt

Posted by ke4nt1 on Aug. 01 2004,05:36
On your multiple rox defaults...

Can you write a little script for each icon you want ??

I tried this, and it worked..

#!/bin/sh
cd /usr/games
rox

Save this 3 line script as "games.rox" in your /home/dsl directory.

Now, if you make this file executable "chmod 744 games.rox"..
You can run it, and Rox opens in /usr/games ..

Isn't this what your lookin for ??

You can lnk an icon to this file just like the other icons in .xtdesktop
For example:
=======================
table Icon
 Type: Program
 Caption: Games
 Command: /home/dsl/games.rox
 Icon: .xtdesktop/games.rox.png
 X: 295
 Y: 185
end
=======================

Let me know...

73
ke4nt

Posted by clivesay on Aug. 01 2004,11:08
Kent -

Great idea! I will give that a try today.

Thank you!

Posted by clivesay on Aug. 01 2004,14:52
Well, I created the script and ran it but it still opens up in the default home/dsl directory

cd /home/dsl/My Documents
rox

I'll keep messing with it. Thanks

Chris

Posted by ke4nt1 on Aug. 01 2004,15:45
I wonder if it doesn't like the SPACE in the filename...

I just made another one with /home/dsl/Mail

I went as far as placing the executable script on another hard drive = hda4

Wnen I run it, it opens rox in /home/dsl/Mail...  

Try my_documents or /home/dsl/"My Documents"  with quotes..

I don't think the space is a good thing in a command string..

73
ke4nt

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.