If you start Emacs in GUI form on Linux, then your Emacs might not be able to read the environment variables that set in .bashrc file. This is due to the fact that the system login shell is not the same as the interactive shell. The login shell does not read the .bashrc file by default, instead, it reads the .bash_profile file which normally locates in your $HOME directory. And desktops like Gnome use the login shell to boot.

Table of Contents