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 Wed 16 Apr 2014, 15:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Need a script to execute when JWM starts
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send private message 
MU


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

PostPosted: 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" Smile

Mark

Last edited by MU on Sun 25 Sep 2005, 20:59; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
peppyy


Joined: 27 Jun 2005
Posts: 429
Location: VT USA

PostPosted: 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.
_________________
Questions? Search Puppy Linux Answers with Google
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send private message 
MU


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

PostPosted: 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
View user's profile Send private message Visit poster's website 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
MU


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

PostPosted: 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
View user's profile Send private message Visit poster's website 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
MU


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

PostPosted: Sun 25 Sep 2005, 23:23    Post subject:  

dvw,

Your solution looks quite comfortable Smile

my application does not support drag'n'drop.

Greets, Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0577s ][ Queries: 11 (0.0074s) ][ GZIP on ]