unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Artyom Loenko via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 37551@debbugs.gnu.org
Subject: bug#37551: [PATCH]: Update privacy usage descriptions for macOS 10.15 Catalina (nextstep)
Date: Sun, 29 Sep 2019 11:21:05 +0100	[thread overview]
Message-ID: <5DB962A6-170B-4D67-80D5-EB35C2C9FF48@mac.com> (raw)

Hello there,

Apple has updated requirements related to privacy on macOS Catalina. Now we have to specify usage descriptions for the following items to be able to access these folders and volumes:

- NSDesktopFolderUsageDescription;
- NSDocumentsFolderUsageDescription;
- NSDownloadsFolderUsageDescription;
- NSRemovableVolumesUsageDescription.

(https://developer.apple.com/documentation/bundleresources/information_property_list/)

Otherwise, it is impossible to work with files in these folders (especially, when Desktop and Documents are synchronised with iCloud). Full Disk Access permission does not help in this case. The only workaround right now is to run Emacs from Terminal.app to inherit Terminal.app permissions.

P.S. There is a simple script that simulates the same behaviour if you want to check how it works: https://gist.github.com/dive/f64c645a9086afce8e5dd2590071dbf9

This is a simple patch to fix it (these changes are backwards compatible, and previous macOS versions ignore these values.):

—————

 nextstep/templates/Info.plist.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.plist.in
index c1e50a8409..70f641cc99 100644
--- a/nextstep/templates/Info.plist.in
+++ b/nextstep/templates/Info.plist.in
@@ -677,5 +677,13 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
 	<string>YES</string>
         <key>NSAppleEventsUsageDescription</key>
         <string>Emacs requires permission to send AppleEvents to other applications.</string>
+	<key>NSDesktopFolderUsageDescription</key>
+	<string>Emacs requires permission to access the Desktop folder.</string>
+	<key>NSDocumentsFolderUsageDescription</key>
+	<string>Emacs requires permission to access the Documents folder.</string>
+	<key>NSDownloadsFolderUsageDescription</key>
+	<string>Emacs requires permission to access the Downloads folder.</string>
+	<key>NSRemovableVolumesUsageDescription</key>
+	<string>Emacs requires permission to access files on Removable Volumes.</string>
 </dict>
 </plist>

—————

--
Artem




             reply	other threads:[~2019-09-29 10:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-29 10:21 Artyom Loenko via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2019-10-05 16:48 ` bug#37551: [PATCH]: Update privacy usage descriptions for macOS 10.15 Catalina (nextstep) Alan Third
2019-10-05 18:48   ` Eli Zaretskii
2019-10-05 21:33     ` Alan Third
2019-10-06  2:40       ` Eli Zaretskii
2019-10-06 14:35         ` Artyom Loenko via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-10-06 18:06           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5DB962A6-170B-4D67-80D5-EB35C2C9FF48@mac.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=37551@debbugs.gnu.org \
    --cc=artyom.loenko@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).