help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec-path not changed in autostart


From: Óscar Fuentes
Subject: Re: exec-path not changed in autostart
Date: Fri, 19 Dec 2014 23:13:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Xin Jin <zariskij@gmail.com> writes:

> On Friday, December 19, 2014 1:58:45 PM UTC-8, Xin Jin wrote:
>> On Friday, December 19, 2014 1:54:34 PM UTC-8, Xin Jin wrote:
>> > No, it doesn't. I added some paths to $PATH in .bashrc, and clearly they 
>> > do not show up in exec-path by default.
>> > 
>> > On Friday, December 19, 2014 1:46:31 PM UTC-8, Eli Zaretskii wrote:
>> > > > Date: Fri, 19 Dec 2014 13:09:19 -0800 (PST)
>> > > > From: Xin Jin <zariskij@gmail.com>
>> > > > Injection-Date: Fri, 19 Dec 2014 21:09:20 +0000
>> > > > 
>> > > > I use the following code to add the paths from the shell environment 
>> > > > to exec-path:
>> > > > 
>> > > > (setq exec-path
>> > > >       (append
>> > > >        (split-string-and-unquote (getenv "PATH") ":")
>> > > >        exec-path))
>> > > 
>> > > Why do you need that?  exec-path already includes the directories from
>> > > $PATH, so the above sounds redundant.
>> 
>> Hmm, so is that the .bashrc is processed too slowly so that $PATH hasn't 
>> updated?
>> 
>> But even if I add (sleep 10s && emacs24 --daemon), it still doesn't work. 
>> Maybe I should try longer.
>
> Even sleep 20s does not work.

It is not about of timing. The init scripts execute when the OS starts,
while your .bashrc executes when you log in. The OS will not allow you
to log in until all init scrips are finished executing.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]