Re: Inverse of SMJobBless
Re: Inverse of SMJobBless
- Subject: Re: Inverse of SMJobBless
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 30 Nov 2015 21:43:26 +0700
> On 30 Nov 2015, at 19:59, Pierre Molinaro <email@hidden> wrote:
>
> Hi,
>
> Just increment the Bundle Version setting in the Info.plist of your privileged helper tool, the new version will be automatically installed on launch.
>
> Pierre
Thanks a lot. This is a very helpful hint.
But:
After doing SMJobBless twice, the third time I get kSMErrorInternalFailure.
Any cure for this (other than reboot)?
But anyway, this reduces the number of necessary reboots to one third.
Kind regards,
Gerriet.
>
>> Le 30 nov. 2015 à 12:28, Gerriet M. Denkmann <email@hidden> a écrit :
>>
>> I have a program which talks via NSXPCConnection to a privileged helper tool.
>>
>> It also can install the helper tool, using SMJobBless().
>>
>> The problem: When I change the helper tool, the only way to get the new version running is to remove:
>> /Library/LaunchDaemons/myHelperTool.plist
>> /Library/PrivilegedHelperTools/myHelperTool
>> and restart the computer.
>>
>> There must be a better way.
>>
>> There is SMJobRemove, but this is deprecated.
>> Maybe some launchctl commands?
>> But doing it from the App would be the preferred way.
>>
>>
>> Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden