From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Artyom Loenko via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#37551: [PATCH]: Update privacy usage descriptions for macOS 10.15 Catalina (nextstep) Date: Sun, 29 Sep 2019 11:21:05 +0100 Message-ID: <5DB962A6-170B-4D67-80D5-EB35C2C9FF48@mac.com> Reply-To: Artyom Loenko Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32565"; mail-complaints-to="usenet@blaine.gmane.org" To: 37551@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 13:32:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEXRI-0008Gi-O4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 13:32:32 +0200 Original-Received: from localhost ([::1]:38168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEXRH-0007BA-6A for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 07:32:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47899) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEXQz-0007B2-VB for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 07:32:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEXQu-0004ez-2k for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 07:32:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEXQr-0004N9-VK for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 07:32:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEXQq-0001Ue-NC for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 07:32:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artyom Loenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2019 11:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37551 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15697566944306 (code B ref -1); Sun, 29 Sep 2019 11:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2019 11:31:34 +0000 Original-Received: from localhost ([127.0.0.1]:52418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEXQL-00016a-Jm for submit@debbugs.gnu.org; Sun, 29 Sep 2019 07:31:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEWKJ-0006G5-Tu for submit@debbugs.gnu.org; Sun, 29 Sep 2019 06:21:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38935) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEWKI-0001Le-D6 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 06:21:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEWKH-0000ye-6f for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 06:21:14 -0400 Original-Received: from mr85p00im-ztdg06021101.me.com ([17.58.23.180]:53595) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iEWKH-0000wd-0U for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 06:21:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1569752470; bh=7YepD3zWo0HqI3MW+znD/sv/ZDEIM4egDW0MTq5taiI=; h=From:Content-Type:Subject:Message-Id:Date:To; b=c3D4f32dI2wYbLBG6Kx2GZ8qgsJHwCZw+ZjPP25BJFOHkofNXkDo8E4NcptCK4S0b 0TUMFwVnirO2E5RmKv8tsFYhjagavDhpufJIb/tcZ1yGdQEmOD8TN/QtUxvYNpH0HM 2gZR9xiA3UJ5ZLJ3JF2rN/AQ7GCkDDvla3sxQbaPhqfPscmscArEZWOFvcH0HiSC6R el12VUqO9LeHpvgp8Ib5WQSWDXm17nWWcE6P43o89V4tBSxcfGxmOLNdxvTIEOEdHN ugqHHQKlKKvHctALB4f9RMM8Cv+DzddivcqXrPCzJYUHnpM+H4BqoQe3XXE/pKFE9a KNFT7rYPi42qg== Original-Received: from [10.0.1.5] (cpc107665-brnt1-2-0-cust699.4-2.cable.virginm.net [82.28.62.188]) by mr85p00im-ztdg06021101.me.com (Postfix) with ESMTPSA id 1C581340880 for ; Sun, 29 Sep 2019 10:21:09 +0000 (UTC) X-Mailer: Apple Mail (2.3594.4.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-09-29_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909290118 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Sun, 29 Sep 2019 07:31:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167647 Archived-At: 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_pro= perty_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.): =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 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 = . YES NSAppleEventsUsageDescription Emacs requires permission to send AppleEvents to other = applications. + NSDesktopFolderUsageDescription + Emacs requires permission to access the Desktop = folder. + NSDocumentsFolderUsageDescription + Emacs requires permission to access the Documents = folder. + NSDownloadsFolderUsageDescription + Emacs requires permission to access the Downloads = folder. + NSRemovableVolumesUsageDescription + Emacs requires permission to access files on Removable = Volumes. =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 -- Artem=