What I have observed:
When I type emacs
in gnome-terminal, it launches in the same environment, with variables set in .bashrc
. If I use a keyboard shortcut to the command emacs
, it opens in an environment that does not have these variables.
Questions:
- Is there a reason for this behaviour?
- How can I get emacs to open in an environment with settings from
.bashrc
? - If I have root access, can I set these variables 'system-wide'?
Additional background: I need is to be able to access the variables from within R, as described in a related SO question (How to access a bash environment variable from within R in emacs), and I also need the path to my texlive distribution for Auctex. The present question is different in that I am more generally interested in the difference between launching emacs from within the terminal and launching emacs from the Applications menu, Gnome-do, or keyboard shortcut that call either emacs
or /usr/bin/emacs23 %F
.