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 Sun 26 Oct 2014, 04:01
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Where do I edit for a program to start automatically?SOLVED
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Fri 30 Aug 2013, 16:49    Post_subject:  Where do I edit for a program to start automatically?SOLVED  

Hello Everyone,

I would like to have a program to open right after welcome screen to closed?

Do I edit countrywizarrd or xinitrc?

Any help here would be great thanks

Edited_time_total
Back to top
View user's profile Send_private_message 
runtt21


Joined: 07 Jun 2008
Posts: 1650
Location: BigD Texas

PostPosted: Fri 30 Aug 2013, 17:27    Post_subject:  

put a script in /root/startup
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Fri 30 Aug 2013, 18:00    Post_subject:  

Hi runtt21,

I have done that before. what I want to do is have a program start after a person sets-up locales, Internet and screen resolution. All of this would be after welcome1stboot.

If this can be done by putting it in /root/Startup by delays how would this be possible?
Back to top
View user's profile Send_private_message 
Jasper


Joined: 25 Apr 2010
Posts: 1145
Location: England

PostPosted: Fri 30 Aug 2013, 18:20    Post_subject:  

Hi,

I'm not at all sure I understand, but you might have a look at "Startmount" from 01micko which on booting can auto mount partitions and/or run apps.

My regards
Back to top
View user's profile Send_private_message 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Fri 30 Aug 2013, 18:39    Post_subject:  

Jasper wrote:
Hi,

I'm not at all sure I understand, but you might have a look at "Startmount" from 01micko which on booting can auto mount partitions and/or run apps.

My regards


I will take a look, but I don't think this will do it for me.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 30 Aug 2013, 18:41    Post_subject:  

Hi oldyeller !

Probably look into /usr/sbin/delayedrun, which triggers the files in /root/Startup .

That file I think should trigger all the wizards , quicksetup and whatever they are named .
Probably pemasu and micko are the only ones that know the current firstboot structure Embarassed

At least (and look for)
if [ "$PUPMODE" = 5 ] ; then
test (lines)
is needed I think for your codeblock .
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Fri 30 Aug 2013, 18:44    Post_subject:  

Karl Godt wrote:
Hi oldyeller !

Probably look into /usr/sbin/delayedrun, which triggers the files in /root/Startup .

That file I think should trigger all the wizards , quicksetup and whatever they are named .
Probably pemasu and micko are the only ones that know the current firstboot structure Embarassed

At least (and look for)
if [ "$PUPMODE" = 5 ] ; then
test (lines)
is needed I think for your codeblock .


Thanks I will look at that too.

Cheers
Back to top
View user's profile Send_private_message 
runtt21


Joined: 07 Jun 2008
Posts: 1650
Location: BigD Texas

PostPosted: Fri 30 Aug 2013, 20:43    Post_subject:  

If you don't mind me asking, what is it you want to run?
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Fri 30 Aug 2013, 21:44    Post_subject:  

I am going to build a gui for desktop and appearance settings that I want to show up after welcome1stboot is killed. It is close to template for icons and for starting some other apps.
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sat 31 Aug 2013, 06:18    Post_subject:  

Check if welcome1stboot is a script - if it is you should just edit that.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7836
Location: qld

PostPosted: Sat 31 Aug 2013, 07:33    Post_subject:  

disciple wrote:
Check if welcome1stboot is a script - if it is you should just edit that.


It's not, it's a compiled bacon app.

+1 for Karl's suggestion.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Sat 31 Aug 2013, 09:21    Post_subject:  

01micko wrote:
disciple wrote:
Check if welcome1stboot is a script - if it is you should just edit that.


It's not, it's a compiled bacon app.

+1 for Karl's suggestion.


I have looked at what Karl said about the delayedrun. just not sure on how to do it. I might have to put a script in /root/Startup that will start after welcome1stboot is closed.

Again not sure on how one would code to check when welcome1stboot is closed. I did try this. but to no avail I'm sure that it is not right.

Code:

if [ welcome1stboot = killall ] then
exec welcome "!@"
fi
Back to top
View user's profile Send_private_message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Sat 31 Aug 2013, 13:15    Post_subject:  

oldyeller wrote:
I have looked at what Karl said about the delayedrun. just not sure on how to do it. I might have to put a script in /root/Startup that will start after welcome1stboot is closed.

I'll leave this for others to answer. In Fatdog64 it is definitely /root/Startup, but not sure on other puppies.

Quote:
Again not sure on how one would code to check when welcome1stboot is closed. I did try this. but to no avail I'm sure that it is not right.


Code:

# the next line will wait until welcome1stboot is gone
while pidof welcome1stboot > /dev/null; do sleep 1; done
# welcome1stboot is gone, now do whatever you want to do.
do-whatever-you-want-to-do


Be careful though, you need to make sure that someone your prompt isn't automatically run after *every single boot*. That would be annoying Cool

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send_private_message 
oldyeller


Joined: 15 Nov 2011
Posts: 812
Location: Mishawaka IN

PostPosted: Sat 31 Aug 2013, 13:49    Post_subject:  

Hi jamesbond,

I will try this out.

I already have this happening every time Manna 2.7 remaster of lupu528-004 and it is annoying. That is the # 1 reason that I wanted to change how things start up.

Than also have it to where it does not do all the time. This should work I hope.

Cheers
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Sat 31 Aug 2013, 17:03    Post_subject:  

oldyeller,

Another approach would be to put welcome1stboot into a "wrapper" script like this -

rename /usr/sbin/welcome1stboot /usr/sbin/welcome1stboot-bin

Make script called /usr/sbin/welcome1stboot -
Code:
#!/bin/sh
/usr/sbin/welcome1stboot-bin
#your script  here
exit


When welcome1stboot is called, the above script will run and when the dialog is closed "your script here" will run.

Cheers,
s
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
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.0811s ][ Queries: 11 (0.0074s) ][ GZIP on ]