If I open emacs from the command line, it loads my .bashrc and correctly sets my paths.
M-: (getenv "PATH")
Returns my actual $PATH variable.
If I open emacs from the command line, pin the icon to favorites, close emacs, then open emacs from the favorites panel, it does not load .bashrc and does not correctly set my paths.
M-: (getenv "PATH")
Produces very different results that look like system defaults. This is emacs 27.1 and Ubuntu 18.04.
Questions:
- What is happening?
- How can I fix it?
- What bashrc is being read if not mine?
.desktop
file you pinned to favourites is not started from bash and thus.bashrc
is not sourced..bashrc
(just tested it in Kubuntu 18.04).getenv
doesn't start a bash, so.bashrc
is not sourced and thus the environment variables exported in.bashrc
aren't visible.