all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsformacos: cannot access mac folders: Documents/Downloads
Date: Sat, 27 Mar 2021 14:49:31 +0530	[thread overview]
Message-ID: <m2r1k1necc.fsf@codeisgreat.org> (raw)
In-Reply-To: 874kgxrrxc.fsf@mat.ucm.es

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Daniel Martín <mardani29@yahoo.es>
>>> 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





  reply	other threads:[~2021-03-27  9:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 22:03 emacsformacos: cannot access mac folders: Documents/Downloads Uwe Brauer
2021-03-26 22:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27  2:25 ` Daniel Martín
2021-03-27  6:34   ` Eli Zaretskii
2021-03-27  7:12     ` Uwe Brauer
2021-03-27  9:19       ` Pankaj Jangid [this message]
2021-03-27 12:20       ` Daniel Martín
2021-03-27 16:23         ` Uwe Brauer
2021-05-02 16:09         ` Uwe Brauer
2021-03-27  7:24   ` Uwe Brauer
2021-03-27 12:22     ` Daniel Martín

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

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

  git send-email \
    --in-reply-to=m2r1k1necc.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.