Mac 10.15 service stopped working for Desktop/Downloads/Documents folders
Hi,
This is regarding the issue I am facing with Mac 10.15.
We have a C++ desktop application. We use xcode IDE.
My application a service which is launched by launch Daemon. This service application is bundled inside its corresponding GUI application's Contents/Resources Folder. The GUI application
creates some folders and service application watches these folders for any files dropped to it. I am unable to access privacy sensitive folders from this service. The call to opendir() fails.
I figured out that adding my application to full disk access enables my service to work. I have to add the GUI application to the full disk access, adding the service alone does not work.
Service application has some dependencies which are bundled in the GUI application's Contents/Resources folder.
Is it possible to add my GUI application to full disk access programmatically? can my GUI application prompt for full disk access at launch and every time I create a folder at the privacy sensitive location? Is there any API to know if my application already has “Full Disk Access”.
Or is there any other way to let my service work on the privacy sensitive location without adding to full disk access.
An early response will be appreciated.
Thanks in advance
Alka