[launchd-dev] SMJobBless error: kSMErrorDomainFramework error 5 - The tool at the specified path is not valid

Prime Coderama prime.coderama at gmail.com
Mon Mar 5 14:09:03 PST 2012


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 at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev



More information about the launchd-dev mailing list