Hi.

I’m developing that privileged daemon, mostly a C++ unix-style thing, that will 
be started from a System-preferences panel, and kept alive by launchd.

The SMJobBless() API will copy my daemon to the /Library/PrivilegedHelperTools/ 
and will run it from there. 

My daemon must link against some 3rd-party private framework that must reside 
on disk for license reasons. I can’t install the framework  in normal 
search-paths /Library/Frameworks or ~/Library/Frameworks, again for licensing 
reasons. The framework needs to be private.

What I had in mind, is to have my daemon packaged as a normal OS-X code-bundle, 
with private framework embedded in its bundle  (along with other resources). 

However — If I understand right, the binary of the daemon, copied to 
/Library/PrivilegedHelperTools will not be able to find its framework in 
runtime - or maybe it can?

Is there some combination of @runpath @loder_path and other link-time magic I 
could use to achieve that?

Motti Shneor.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to