I have a LaunchdAgent (e.g. /etc/someDir/myAgent) running, which asks permission to record the screen. System Popup pops - user permits screen-recording in the System-Preferences "Security & Privacy" panel, the "Privacy" tab. It is clearly visible there.
Now when I wish to uninstall/remove this agent, I also want to remove its permissions.
I should be able to use the tccutil command-line tool to either
tccutil reset ALL myAgent
or
tccutil reset ScreenCapture myAgent
However, I always receive the following error:
tccutil: No such bundle identifier "myAgent": The operation couldn’t be completed. (OSStatus error -10814.)
I tried to use the path to the launchAgent, its label "com.mycompany.myAgent" from the .plist I install in /Library/LaunchAgents to run it, I even tried unique identifiers from its [NSProcessInfo processInfo] -- to no avail.
man tccutil is worthless, and I cannot find any documentation on the subject.
Idea anyone? how can I clear privacy database of my Agent once it is no longer needed?