SMJobBless only works with kSMDomainSystemLaunchd, needs kSMDomainUserLaunchd

The docs state that with SMJobBless you can only use kSMDomainSystemLaunchd

SMJobBless(kSMDomainSystemLaunchd, (CFStringRef)label, authRef, (CFErrorRef *)error);

      

But how do I create a LaunchAgent inside LaunchAgents / in the user library that is executed when the user logs in using SMJobBless or similar approach?

+3
cocoa macos smjobbless


source to share


No one has answered this question yet

Check out similar questions:

544
How to install a gem or update RubyGems if it doesn't work with a permission error
451
`pg_tblspc` is missing after installing the latest OS X (Yosemite or El Capitan)
364
Mongod complains that there is no / data / db folder
355
Exception thrown by generated NSOrderedSet
7
Using LaunchAgent inside the Mac sandbox
4
SMJobBless return error 4098
2
SMJobBless throws error CFErrorDomainLaunchd Code = 8
1
Removing items installed with .app when user uninstalls it, including SMJobBless helpers
1
Lazarus Pascal: Creating a Privileged Helper with SMJobBless ()
0
CFErrorDomainLaunchd Code = 8



All Articles
Loading...
X
Show
Funny
Dev
Pics