From e5ff24572587dadbdcca1088a7c65a36ad91d195 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sun, 22 May 2022 21:29:03 +0200 Subject: [PATCH] chore: add Full Disk Access key --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 88fa159..3822e01 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,13 @@ const { askForFullDiskAccess } = require('node-mac-permissions') askForFullDiskAccess() ``` +If you would like your app to pop up a dialog requesting full disk access when your app attempts to access protected resources, you should add the `NSSystemAdministrationUsageDescription` key to your `Info.plist`: + +``` +NSSystemAdministrationUsageDescription +Your reason for wanting Full Disk Access +``` + ### `permissions.askForCameraAccess()` Returns `Promise` - Current permission status; can be `authorized`, `denied`, or `restricted`.