all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: auctex-devel@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [script vs ICon: latex binaries not found]
Date: Mon, 04 Apr 2022 22:06:34 +0200	[thread overview]
Message-ID: <87r16cobp1.fsf@mat.ucm.es> (raw)
In-Reply-To: 87sfqt1aj1.fsf@gmail.com

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


> chad <yandros@gmail.com> writes:


> I think the aspect which confuses most people under macOS is that the
> 'dock' does not run as a child process of the user's login shell. This
> means it does not see any of the environment variables (such as PATH)
> which the user may have added to in their login .profile. 

Very much so.


> Common complaint is that everything seems to work when they run Emacs
> from within a terminal, but not when they start it via the 'Icon'
> (either from the 'Applications' view in finder or the dock). It works
> from within the terminal because the terminal has run a shell which
> has sourced their login profiles (for simplicity, I'm ignoring the
> subtle differences between .profile/.bash_profile and .bashrc or
> .zprofile and .zxhrc, especially as lots of people now put many
> environment settings in .bashrc rather than .profile these days. Same
> with the differences between configuring the terminal app to run a
> login shell or just a 'normal' shell i.e. there is some devil in the
> details!).

Oops so do I (I even use the tcsh shell (via fink)


> The xattr command has little to do with the security restrictions on the
> mac. In fact, even GNU Linux has the xattr command. The restrictions
> added by macOS are a whole additional layer.

That is important to know, thanks


> The exec-path-from-shell package is a common mechanism used to ensure
> the path is configured to include additional directories and is
> primarily needed because starting Emacs from the dock or Applications
> folder does not run the process as a child of the user's login shell.
> Another approach is to add the paths to either the /etc/paths or put
> them in a file in /etc/paths.d, which sets the system wide paths which

I'd rather prefer not to mess up with these files, or only as a method
of last resort.

> all applications will then see. Of course, this doesn't solve the issue
> of other environment variable settings which might be needed. For
> simplicity, I will often just add these directly in my init.el, but this
> isn't optimal as now you have two places to maintain such things (from
> memory, I think the exec-path-from-shell package can help with these
> more general non-path environment settings as well). 

Right I think I will give that exec-path-from-shell a try.

Thanks

Uwe 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-04-04 20:06 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
2022-04-04  8:38     ` Tim Cross
2022-04-04 20:06       ` Uwe Brauer [this message]
2022-04-04 20:03     ` [script vs ICon: latex binaries not found] 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=87r16cobp1.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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.