Cocoa Launch agent registering itself after installation.
Posted
by Unicorn
on Stack Overflow
See other posts from Stack Overflow
or by Unicorn
Published on 2010-05-13T07:45:33Z
Indexed on
2010/05/13
7:54 UTC
Read the original article
Hit count: 202
I have created Cocoa app which is type of launch agent. To distribute this I have created package as well which installs the app and copies the launchagnet plist file in /Libraries/LaunchAgents.
Now the problem is after installation i want this app to be running in user context immediately without logoff/restart. If I register this with "launchctl" from installer, using post install script, it run in root context, as installer is running in root context.
Any suggestion how the agent registers itself to launchctl and runs in user context.
© Stack Overflow or respective owner