Need a script to execute when JWM starts

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

Need a script to execute when JWM starts

#1 Post by Ian »

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.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

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
Last edited by MU on Mon 26 Sep 2005, 00:59, edited 2 times in total.

User avatar
peppyy
Posts: 443
Joined: Mon 27 Jun 2005, 23:49
Location: VT USA
Contact:

#3 Post by peppyy »

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!

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#4 Post by Ian »

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.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

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
Last edited by MU on Mon 26 Sep 2005, 01:44, edited 1 time in total.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#6 Post by dvw86 »

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.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#7 Post by GuestToo »

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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

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

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#9 Post by Ian »

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.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#10 Post by dvw86 »

I simply add this line in .xinitrc:

Code: Select all

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: Select all

#! /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=

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »

dvw,

Your solution looks quite comfortable :)

my application does not support drag'n'drop.

Greets, Mark

Post Reply