Re: launch agent questions
Re: launch agent questions
- Subject: Re: launch agent questions
- From: "Finlay Dobbie" <email@hidden>
- Date: Wed, 14 Jun 2006 06:42:02 +0100
On 13/06/06, Alex Sheh <email@hidden> wrote:
I have a few questions related to launch agents. Not sure which list I
should be posting to, but I saw some discussion about launch agents on
this list's archive - please let me know if this questions belongs on
another list.
You might want to try darwin-dev
I have a launch agent that I want to run whenever the user logs in via
the GUI window. I noticed that I need to call system("launchctl unload
com.myCompany.myAgent.plist") at then very end of executable myAgent, in
order for my launch agent to be run again after logging out and logging
back in via GUI. Otherwise my launch agent plist remains loaded and the
next time I log back in, nothing happens.
Launch agents are known not to behave entirely correctly on Tiger, and
thus I believe the recommendation is that t you use login items
instead. Apple has posted sample code for manipulating the login items
database.
The other thing is if I run my launch agent without the unload compiled
in at the very end, then manually unload, and relogin, I get the
following error - "CoreMIDI: unable to connect to server init port".
This is mind boggling to me. Why would compiling in the unload into my
launch agent make a difference?
It's a bug.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden