Author |
Message |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1238 Location: Queensland
|
Posted: Sun 25 Sep 2005, 19:57 Post subject:
Need a script to execute when JWM starts |
|
Does anyone know how can I safely start a program at the same time as JWM.
I have destroyed a few files trying to work this out.
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 25 Sep 2005, 20:40 Post subject:
|
|
You can use this dotpup:
http://www.murga.org/%7Epuppy/viewtopic.php?p=14950#14950
Just added a small patch that makes it more reliable.
Just added a button "new entry"
Mark
Last edited by MU on Sun 25 Sep 2005, 20:59; edited 2 times in total
|
Back to top
|
|
 |
peppyy

Joined: 27 Jun 2005 Posts: 439 Location: VT USA
|
Posted: Sun 25 Sep 2005, 20:41 Post subject:
|
|
I have been using the Start-items dot pup to launch torsmo and it seems to work fine. I am not quite sure what you need to run but this should do it. It is in user contributed I think.
_________________ Puppy Linux...
It just works!
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1238 Location: Queensland
|
Posted: Sun 25 Sep 2005, 21:15 Post subject:
|
|
What I want to do is get Sticky Notes to stick to the JWM desktop, to do this I need to run a script to start the program.
I need the script to execute when JWM starts, in fvwm it is easy as the script can be started from .fvwm95rc.
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 25 Sep 2005, 21:28 Post subject:
|
|
just take my program.
It adds a line to .xinitrc
/root/wxb-autostart.sh&
In this file you can add any script or program using the grafical interface.
As wxb-autostart.sh runs in bakground (&) there is no danger it might prevent X from starting.
It has an example-entry:
sleep 3 && rox /root/my-roxapps/Radio3 &
I found out, that rox-icons are not visible, if you do not use the "sleep 3" when running a rox-app before rox-panel starts (which is started later in .xinitrc).
This program is designed for Puppy 1.0.5.
On older sytems, do this:
install also these 2 dotpups:
http://www.murga.org/%7Epuppy/viewtopic.php?p=15043#15043
http://www.murga.org/%7Epuppy/viewtopic.php?t=2417
Mark
Last edited by MU on Sun 25 Sep 2005, 21:44; edited 1 time in total
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Sun 25 Sep 2005, 21:35 Post subject:
|
|
Sounds like your script and my start-items script do the same basic thing. Although I should rewrite mine to modify .xinitrc instead of replacing it.
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Sun 25 Sep 2005, 21:38 Post subject:
|
|
MU wrote: | I found out, that rox-icons are not visible, if you do not use the "sleep 3" when running a rox-app before rox-panel starts (which is started later in .xinitrc) |
this might (or might not) work in .xinitrc:
rox -o /root/my-roxapps/Radio3
you should not need the &
it might be better if /usr/local/bin/rox had the -o option in it, then it would not need to be used in .xintrc
#!/bin/sh
exec /usr/local/apps/ROX-Filer/AppRun -o "$@"
this would work better with my Rox 2.2.20 package too
rox may not need the -o option for some window managers
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 25 Sep 2005, 22:15 Post subject:
|
|
GuestToo wrote: |
this might (or might not) work in .xinitrc:
rox -o /root/my-roxapps/Radio3 |
Yes, works (tried it with Icewm).
Strangely, if I run it from my included wxb-autostart.sh&
it still needs
sleep 3 && rox -o /root/my-roxapps/Radio3
If I don't use sleep 3, I can see no desktop-icons.
Greets, Mark
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1238 Location: Queensland
|
Posted: Sun 25 Sep 2005, 22:46 Post subject:
|
|
Thanks men, I've been busy with other stuff and have only worked on this when I could. I thought about using .xinitrc but was not sure if I would destroy it as well, now I have something definite I can work on.
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Sun 25 Sep 2005, 22:47 Post subject:
|
|
I simply add this line in .xinitrc:
Code: |
rox /root/my-roxapps/Start-Items/start
|
Then my start script is just a list of items that you want to run. Like so:
Code: |
#! /bin/sh
rox /usr/local/bin/defaultemail
rox /usr/local/bin/defaultbrowser
|
I haven't had any trouble with it in Puppy 1.0.3, 1.0.4, or 1.0.5
http://www.murga.org/%7Epuppy/viewtopic.php?t=1224&highlight=
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 25 Sep 2005, 23:23 Post subject:
|
|
dvw,
Your solution looks quite comfortable
my application does not support drag'n'drop.
Greets, Mark
|
Back to top
|
|
 |
|