From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: pdflatex not found? Date: Tue, 27 Oct 2015 13:14:07 -0400 Message-ID: <87si4w5j4w.fsf@alphaville.usersys.redhat.com> References: <6sw6c7bnbke8ah.fsf@pfdstudio.com> <562F826B.1080802@gmail.com> <87wpu85lon.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr7pX-0002wl-9B for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 13:14:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr7pT-0003zN-70 for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 13:14:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:38070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr7pT-0003zF-0H for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 13:14:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zr7pL-0004CA-Rm for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 18:14:27 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2015 18:14:27 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2015 18:14:27 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Rainer M Krug writes: > Nick Dokos writes: > >> Rainer M Krug writes: >> >>> Fatma Başak Aydemir writes: >>> >>>> I do not know the reasons but I had the same problem in the past on OS X. >>> >>> In from Yosemite onwards, programs started from the finder / spotlight / >>> gui (however you call this) do *not* inherit from the .bashrc >>> anymore. This caused many problems. >> >> I can understand not inheriting from .bashrc: shells should only use >> that for interactive initializations (aliases and such). > > Right. > >> >> $HOME/.profile however is another matter: it is read by a login shell >> (in a non-graphical or console environment) and so its settings are >> inherited by everybody started from that login shell: that's where env >> variables are supposed to be defined and exported. Desktop environments >> have to go to some lengths to read it and initialize things but as I >> mentioned in my previous message, they *do* do that (on Linux - although >> the mechanism varies by distro, hence the "mess" comment). >> >> If OS X does not use $HOME/.profile to initialize the environment of programs >> (even in the graphical enviroment), that seems to me to be a serious >> bug. > > Aparently it is not. > They do things differently at Apple: http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x has some answers: imo, the launchd.conf method should be avoided (it applies to every user), but the environment.plist method (whatever that is) seems to be the right solution - and although it did not work for Spotlight-launched applications (whatever Spotlight is) in 10.5, it apparently works in 10.6 or later. As you can imagine, all my knowledge comes from that article and references therein: take it with the appropriate grain of salt. Anyway, this is very far from org-mode, so maybe it should be pursued in a different forum. -- Nick