I am working on a large project that includes a kernel module (that talks with the daemon), a centralized daemon (that runs as root/privileged) and agents that interact with a user logged into a graphical session.
In the Windows world, when the daemon needs to show UI it simply creates a new instance of a agent in the targeted session using CreateProcessAsUser() and friends. On OS X however, this type of functionality does not seem to be present. I've found discussions around the "bsexec" option of launchctl but this appears to no longer function in 10.7+. Are there new APIs/ways of doing this? I know the session ID (derived from audit session information/etc.) but do not see away to connect the dots. I know about registering plist's in /Library/LaunchAgents in order to have the agents start at login, but there are still times in which I need to start/stop new instances of agents "on the fly" from the daemon space. Thanks, Bryan Ashby
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev