Need a script to execute when JWM starts
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.
I have destroyed a few files trying to work this out.
You can use this dotpup:
http://www.murga.org/%7Epuppy/viewtopic ... 4950#14950
Just added a small patch that makes it more reliable.
Just added a button "new entry"
Mark
http://www.murga.org/%7Epuppy/viewtopic ... 4950#14950
Just added a small patch that makes it more reliable.
Just added a button "new entry"
Mark
Last edited by MU on Mon 26 Sep 2005, 00:59, edited 2 times in total.
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 ... 5043#15043
http://www.murga.org/%7Epuppy/viewtopic.php?t=2417
Mark
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 ... 5043#15043
http://www.murga.org/%7Epuppy/viewtopic.php?t=2417
Mark
Last edited by MU on Mon 26 Sep 2005, 01:44, edited 1 time in total.
this might (or might not) work in .xinitrc: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)
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
Yes, works (tried it with Icewm).GuestToo wrote: this might (or might not) work in .xinitrc:
rox -o /root/my-roxapps/Radio3
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
I simply add this line in .xinitrc:
Then my start script is just a list of items that you want to run. Like so:
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=
Code: Select all
rox /root/my-roxapps/Start-Items/start
Code: Select all
#! /bin/sh
rox /usr/local/bin/defaultemail
rox /usr/local/bin/defaultbrowser
http://www.murga.org/%7Epuppy/viewtopic.php?t=1224&highlight=