all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: chad <yandros@gmail.com>
To: EMACS development team <emacs-devel@gnu.org>
Cc: auctex-devel <auctex-devel@gnu.org>
Subject: Re: [script vs ICon: latex binaries not found] (was: Emacs on macOS)
Date: Sun, 3 Apr 2022 23:05:51 -0400	[thread overview]
Message-ID: <CAO2hHWaqXi+1Wm07rAZuip6JWer4hnfAVmUFttr=c_5mUQPc2A@mail.gmail.com> (raw)
In-Reply-To: <m2k0c6ozgm.fsf@mat.ucm.es>

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

The point of the ruby script is to set up paths and before launching the
actual emacs binary, since starting a gui app under macOS doesn't do most
of the things that a unix-based application like emacs probably expects.
(To be fair, there's only about 60 years of precedent built up, so...)

The other side of the coin is this: macOS uses an ever-tightening security
system that is intended to prevent users from unintentionally running
"dangerous" processes. I stopped using macOS before the current generation
of these systems, but they do fairly typical security-system things,
including restricting access to parts of the file system and refusing to
run/hampering unsigned/untrusted binaries. There is a way to tell the
system "yes, I know emacs isn't security-blessed; run it anyway" -- that's
(I presume) what that xattr command does. Wrapper scripts present a new
problem: are you security-blessing emacs, the wrapper script, or both? Just
saying "yeah, any ruby script can run whatever it wants" is probably not
the sort of operation that the OS security team wants to make trivial.

As an alternative to the wrapper-script approach, there used to be an emacs
package that helped with some of these issues. IIRC, it's currently called
exec-path-from-shell.

Hope that helps,
~Chad

[-- Attachment #2: Type: text/html, Size: 1460 bytes --]

  parent reply	other threads:[~2022-04-04  3:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 22:52 Emacs on macOS Perry Smith
2022-04-01  7:55 ` Po Lu
2022-04-01 10:47   ` Eli Zaretskii
2022-04-03  7:04 ` [Add xattr to the INSTALLATION file?] (was: Emacs on macOS) Uwe Brauer
2022-04-03 13:45 ` Emacs on macOS Alan Third
2022-04-03 17:20 ` [script vs ICon: latex binaries not found] (was: Emacs on macOS) Uwe Brauer
     [not found] ` <m2k0c6ozgm.fsf@mat.ucm.es>
2022-04-04  3:05   ` chad [this message]
2022-04-04  8:38     ` Tim Cross
2022-04-04 20:06       ` [script vs ICon: latex binaries not found] Uwe Brauer
2022-04-04 20:03     ` Uwe Brauer

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='CAO2hHWaqXi+1Wm07rAZuip6JWer4hnfAVmUFttr=c_5mUQPc2A@mail.gmail.com' \
    --to=yandros@gmail.com \
    --cc=auctex-devel@gnu.org \
    --cc=emacs-devel@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.