[launchd-dev] LaunchAgentFixer for Tiger

"Miklós Fazekas" boga at mac.com
Mon May 21 02:33:11 PDT 2007


I wrote a program that tries to work around the LaunchAgents problem in Tiger. I'd welcome comments about that.

This tool is a LaunchAgent. The idea is that this tool registers itself to loginwindow.plist/AutoLaunchedApplicationDirectory at it's startup. 

Then when this tool started from loginwindow, it checks for the other instance started from laucnhd.  
a.) If launchd launched it in good GUI session, the loginwindow started one will just quit as in this case launchd launched all the agents in the correct session.
b.) If launchd launched it in bad GUI session. The loginwindow started one will start a new launchd, and loads all the agents to it.

Currently it loads only agents having a special key in their plist.

Regards,
Miklos






More information about the launchd-dev mailing list