Re: Regarding launching an application at startup of mac.
Re: Regarding launching an application at startup of mac.
- Subject: Re: Regarding launching an application at startup of mac.
- From: "Amit Jain" <email@hidden>
- Date: Sat, 20 Jan 2007 12:47:23 +0530
I have done every thing i.e. now i can launch the appplication thru launchd
as launchAgents but the only problem i am facing now is that this
application is not launched when i log off and login again with same user. I
get this error :
CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port =
0x3303, name = 'com.yourcompany.iTunesDroper.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
iTunesDroper[313] CFLog (99): CFMessagePortCreateLocal(): failed to name
Mach port (com.yourcompany.iTunesDroper.ServiceProvider)
can you suggest how to solve this.
This works fine i.e. launches my application on restart but fails when i log
off and login again.:(
Thanks for the interest.
Regards..
@mit..
On 1/19/07, Sean McBride <email@hidden> wrote:
On 2007-01-19 12:53, Amit Jain said:
>Actually there r two applications one is main and another is this one
>which has a transperent window and kept over main application on dock.
>Now i need is to launch this application whenever user starts up mac
>or login to account. And thats why i need that the user shud not
>remove this application.
Well, since this application uses the Window Server, it is an 'agent'
not a 'daemon'.
>Ya i have read this and added my helper application so that it can be
>launched thru launchd.And it worked as i need but one more problem i
>am facing is that it only launches on startup of mac not when i logoff
>and again login. Can u suggest me some property like i have tried for
>RunAtLoad and onDemand but it behaves in same way.Thanks for any help.
I've never used launchd, but I believe it is only for daemons, not
agents. You need to put your app in login items I'm afraid. You can
have you other app check if your agent is still in the login items, and
if not, it can re-add it.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden