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 Thu 30 Oct 2014, 11:25
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 Posts_count  
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

Edited_times_total
Back to top
View user's profile Send_private_message Visit_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_website AIM YIM MSNM 
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

Edited_time_total
Back to top
View user's profile Send_private_message Visit_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_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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0598s ][ Queries: 12 (0.0034s) ][ GZIP on ]