From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: emacsformacos: cannot access mac folders: Documents/Downloads Date: Sat, 27 Mar 2021 14:49:31 +0530 Message-ID: References: <87a6qpshcn.fsf@mat.ucm.es> <834kgxp0jl.fsf@gnu.org> <874kgxrrxc.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33854"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:xjfeXvWBevGHLUjIR0Sahdi2Y6o= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 27 10:20:05 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQ56y-0008hQ-44 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 10:20:04 +0100 Original-Received: from localhost ([::1]:48914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQ56x-0003qu-6k for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 05:20:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ56f-0003qo-12 for help-gnu-emacs@gnu.org; Sat, 27 Mar 2021 05:19:45 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:36658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ56d-0005MY-IV for help-gnu-emacs@gnu.org; Sat, 27 Mar 2021 05:19:44 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lQ56a-0008MV-DB for help-gnu-emacs@gnu.org; Sat, 27 Mar 2021 10:19:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128705 Archived-At: Uwe Brauer writes: >>>> "EZ" == Eli Zaretskii writes: > >>> From: Daniel Martín >>> Date: Sat, 27 Mar 2021 03:25:11 +0100 >>> >>> The reason is a security protection in recent versions of macOS where >>> you need to grant explicit permission to applications if you want them >>> to access your personal folders. Go to System Preferences, Security & >>> Privacy, Privacy, Full Disk Access. Note that the Emacs launcher on >>> macOS is actually a Ruby script, so you'd need to add /usr/bin/ruby >>> there. > >> Should this information be in the Emacs user manual? > > > Not sure, if you compile from master then this problem does not occur it > seems to be more of a emacsformacosx thing This problem used to occur, about 6-months ago, every time I built a new binary. Have we changed something in Emacs to circumvent that? At least I don’t remember such a change. On my side, I have changed how I access Emacs. Earlier I used to start from macos terminal program. And now I just copy the ‘nextstep/Emacs.app’ to ‘~/Applications/Emacs.app’, and launch from Launchpad. As I am writing this, I have tried to build new binary and launched from command line. Now that is also working without any problem. All this may be happening because of following: 1. New macos was release in the mean time and it probably has new persistent settings for ‘~/Application/Emacs.app’ even if the user changes binary. 2. There are more settings for ‘Files and Folders’ with respect to ‘Terminal’ program. These new settings may be allowing anything launched from terminal. What should we add to user manual? Ideal use-case for a user should be to use the ‘nextstep/Emacs.app’ application. Like other applications in macos. But user may have downloaded pre-built binary from emacsformacosx.com, as the case in this thread. So, “Copy the freshly built ‘nextstep/Emacs.app’ to your ‘Applications’ directory. Go to System Preferences, Security & Privacy, Privacy, Full Disk Access. Allow ‘Emacs.app’ to access your file-system. Or, if you have downloaded a pre-built binary from emacsformacosx.com then allow ‘/usr/bin/ruby’ to access your file-system.” -- Regards, Pankaj Jangid