STPrivilegedTask icon indicating copy to clipboard operation
STPrivilegedTask copied to clipboard

An NSTask-like wrapper around the macOS Security Framework's AuthorizationExecuteWithPrivileges function to run shell commands with root privileges in Objective-C / Cocoa.

Results 4 STPrivilegedTask issues
Sort by recently updated
recently updated
newest added

I tried to rewrite the core part of STPrivilegedTask in Swift 3 and it is still working on macOS Sierra: https://github.com/gui-dos/Guigna/blob/9fdd75ca0337c8081e2a2727960389c7dbf8d694/Legacy/Guigna-Swift/Guigna/GAgent.swift#L42-L80

Catalina blocks any Platypus-built apps I try to use as a LaunchDaemon/LaunchAgent (at the login window). Something just stops them from firing. See [here](https://github.com/sveinbjornt/Platypus/issues/162). I 'wrote' a simple app to...

So this may not be as one expects, but fcntl() always returns 0 here (on 10.11), thus it does not report back a desired child pid to wait for.

Should I implementation [LsofTask](https://github.com/sveinbjornt/Sloth/blob/master/source/LsofTask.m) get pid to kill? I have implemented SMJobBless,Can I use NSTask with AuthorizationRef? There is so little information about these. Thanks a lot.