RE: launch agent questions
RE: launch agent questions
- Subject: RE: launch agent questions
- From: "Alex Sheh" <email@hidden>
- Date: Tue, 13 Jun 2006 16:34:20 -0700
- Thread-topic: launch agent questions
Hi Satoshi. launchctl unload doesn't modify keys within
com.myCompany.myAgent.plist, rather it unloads the plist itself from the
launchd mechanism (if I understand what you're suggesting).
Thanks,
Alex
-----Original Message-----
From: Satoshi Matsumoto [mailto:email@hidden]
Sent: Tuesday, June 13, 2006 3:22 PM
To: Alex Sheh; email@hidden
Subject: Re: launch agent questions
on 06.06.14 6:51 AM, Alex Sheh at email@hidden wrote:
> 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. Is this
> method of unloading at the end of the executable reasonable, or is
> there another more standard way of doing this?
How about this carbon function?
Boolean CFPreferencesAppSynchronize ( CFStringRef applicationID );
Writes to permanent storage all pending changes to the preference data
for the application, and reads the latest preference data from permanent
storage.
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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