Check out how Carbon Copy Cloner does it if you haven’t seen it recently.
toggle quoted messageShow quoted text
On Jan 25, 2021, at 7:58 PM, Gerriet M. Denkmann <email@example.com> wrote:
On 26 Jan 2021, at 08:28, Jack Brindle via groups.io <firstname.lastname@example.org> wrote:Thanks a lot! This is the perfect solution for my app:
Not just app store apps, on Catalina and especially Big Sur, all apps.
The suggestion is to have the user drag the app to the “Full Disk Access” panel of the Security & Privacy’s Privacy pane. Then you should be able to get anywhere you’d like.
System Preferences → Security & Privacy → Privacy → Full Disk Access (bottom of left scroll view) → add or enable app in right scroll view.
On Jan 25, 2021, at 3:36 PM, Jens Alfke <email@example.com> wrote:
On Jan 25, 2021, at 9:12 AM, Gerriet M. Denkmann <firstname.lastname@example.org> wrote:Isn't that just the normal behavior of the app sandbox? Sandboxed apps aren't allowed to access arbitrary areas of the filesystem, unless the user has implicitly given permission by navigating to a file/folder in an Open panel, or dropping a document, etc.
There are quite a few folders, which behave absolutely normal using the Finder, but when my App tries to do:
it gets an EPERM error: "Operation not permitted”.
When my App shows an OpenPanel (with this un-opened folder), and the user clicks ok, then the open() works just fine.