Accessing ~/Library directory contents from within the macOS Sandbox?

I'm trying to develop a launch agent/daemon viewer and manager for the Mac App Store. The idea is to essentially provide an at-a-glance view of all the user's currently installed launch daemons, as well as potentially managing said daemons (ie. removing insidious 3rd party packages). However, I haven't found any success with accessing these directories from within a sandboxed environment.

I've looked into File System Events, as well as some exception-based entitlement keys, but haven't found anything solid.

Here are some examples of said directories:

/Library/LaunchAgents

/Library/LaunchDaemons

~/Library/LaunchAgents

I do believe that it is somehow possible, as a simple search reveals some abandoned projects that feature this functionality on the Mac App Store. However, I could also be wrong about that too.

If anyone has any suggestions, please let me know!

I'm trying to develop a launch agent/daemon viewer and manager for the Mac App Store.

I don’t think that’s feasible. Doing anything with launchd daemons requires privileges, and Mac App Store apps are not allowed to escalate privileges.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accessing ~/Library directory contents from within the macOS Sandbox?
 
 
Q