AuthorizationExecuteWithPrivileges vs SMJobBless
AuthorizationExecuteWithPrivileges vs SMJobBless
- Subject: AuthorizationExecuteWithPrivileges vs SMJobBless
- From: Trygve Inda <email@hidden>
- Date: Thu, 09 Aug 2012 12:09:05 -0700
- Thread-topic: AuthorizationExecuteWithPrivileges vs SMJobBless
I am using AuthorizationExecuteWithPrivileges to copy a prefPane from its
installed location to the trash as part of the action on an "uninstall"
button.
It runs /bin/mv on the file/package
Of course this is only if the pane is in /Library/PreferencePanes since if
it is in ~/Library/PreferencePanes no authorization is needed.
SMJobBless seems to be the more modern way to do this, but this requires
that my tool be copied from my bundle to another location on the hard drive
which is not what I want.
Is AuthorizationExecuteWithPrivileges ok to use (since it is marked as
deprecated)?
Thanks,
Trygve
_______________________________________________
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