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 nsapplescript using "do shell script \"some script\" administrator privileges". more hack , apple documentation says nsapplescript class must used main thread of application. works too, , don't have troubles that.
  • you can create helper tool , use servicemanagement.framework , smjobbless()

you can find additional info here , here


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -