SMJobBless error: kSMErrorDomainFramework error 5 - The tool at the specified path is not valid
I writing a PreferencePane project and created a helper tool to perform actions that required an elevated privilege. When I run my Preference Pane, I am getting this error:
System Preferences[22312:903] Bless Error: Error Domain=kSMErrorDomainFramework Code=5 UserInfo=0x2005790e0 "The operation couldn’t be completed. (kSMErrorDomainFramework error 5 - The tool at the specified path is not valid.)"
Any ideas on what this error means, how to debug it, what to check?
On 4 Mar 2012, at 07:35, Prime Coderama wrote:
When I run my Preference Pane, I am getting this error:
Errors in the kSMErrorDomainFramework domain are listed in <ServiceManagement/SMErrors.h>. In this case you've hit kSMErrorToolNotValid.
I writing a PreferencePane project and created a helper tool to perform actions that required an elevated privilege.
Currently you can only use SMJobBless from an app; it does not work from a preferences pane <rdar://problem/10015856>. Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
Thanks for responding Eskimo. How am I supposed to run elevated privileged actions through my Preference Pane then? I need to create startup directories and files within /Library/StartupItems and need root access to do this. On 05/03/2012, at 11:53 PM, Quinn The Eskimo! wrote:
On 4 Mar 2012, at 07:35, Prime Coderama wrote:
When I run my Preference Pane, I am getting this error:
Errors in the kSMErrorDomainFramework domain are listed in <ServiceManagement/SMErrors.h>. In this case you've hit kSMErrorToolNotValid.
I writing a PreferencePane project and created a helper tool to perform actions that required an elevated privilege.
Currently you can only use SMJobBless from an app; it does not work from a preferences pane <rdar://problem/10015856>.
Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
On 5 Mar 2012, at 22:09, Prime Coderama wrote:
How am I supposed to run elevated privileged actions through my Preference Pane then?
You will have to use the older technique, as illustrated by BetterAuthorizationSample. <https://developer.apple.com/library/mac/#samplecode/BetterAuthorizationSample/> Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
participants (2)
-
Prime Coderama
-
Quinn "The Eskimo!"