osx - How to running application under root privilege? -
please tell me way grant application modify /library/fonts folder add new , remove font file. in advance.
- you can split application 2 parts: service(daemon) , ui , install them via installer in way service have root privileges
- you can run command app using
authorizationexecutewithprivileges()deprecated. still works - you can run command via
nsapplescriptusing "do shell script \"some script\" administrator privileges". more hack , apple documentation saysnsapplescriptclass must used main thread of application. works too, , don't have troubles that. - you can create helper tool , use
servicemanagement.framework,smjobbless()
Comments
Post a Comment