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 18 Dec 2014, 17:56
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 [20 Posts]   Goto page: 1, 2 Next
Author Message
oldyeller


Joined: 15 Nov 2011
Posts: 822
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

Last edited by oldyeller on Sun 01 Sep 2013, 03:54; edited 1 time in 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 poster's website 
oldyeller


Joined: 15 Nov 2011
Posts: 822
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: 1203
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: 822
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: 3982
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 poster's website 
oldyeller


Joined: 15 Nov 2011
Posts: 822
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 poster's website 
oldyeller


Joined: 15 Nov 2011
Posts: 822
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: 6463
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: 7841
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 poster's website 
oldyeller


Joined: 15 Nov 2011
Posts: 822
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: 2232
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: 822
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: 888

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 from previous:   Sort by:   
Page 1 of 2 [20 Posts]   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:  

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.0792s ][ Queries: 11 (0.0048s) ][ GZIP on ]