[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: environment variables in emacs
From: |
Barry Margolin |
Subject: |
Re: environment variables in emacs |
Date: |
Wed, 28 Mar 2012 19:28:16 -0000 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article
<10a388ae-22ff-41d3-9b4e-13668b7da848@o11g2000prg.googlegroups.com>,
rusi <rustompmody@gmail.com> wrote:
> On Nov 27, 8:14 am, Barry Margolin <bar...@alum.mit.edu> wrote:
> > In article
> > <dad3cf1c-d75c-44fd-8cd6-7cffc4b31...@f36g2000prj.googlegroups.com>,
> >
> > rusi <rustompm...@gmail.com> wrote:
> > > Not really an emacs question but still hoping someone will know.
> >
> > > If I start emacs from a shell it sees my path settings from .bashrc
> > > If however I click the icon on the bar at the top of gnome I dont get
> > > them
> >
> > > How to tell X to use my .bashrc settings?
> >
> > Your .xinitrc should source .bashrc.
>
> Well I tried putting
> . ~/.bashrc
> in my .xinitrc
>
> Does not make any difference. What am I doing wrong?
Are you starting GNOME from your .xinitrc, or are you using GDM to log
directly into the window environment? It sounds like the latter.
In that case, I think you need to set your environment variables in
.profile rather than .bashrc. I think this should be read by the
session startup script.
You can simply add
. ~/.bashrc
to your .profile so they're set in both scripts.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***