Page 1 of 1

LXTerminal doesn't run /etc/profile.d/

Posted: Wed Aug 21, 2013 1:40 am
by solar3000
I'm running the latest july stable raspbian.
at the text console, when I login, the shell runs .bashrc, .bash_profile, all of /etc/profile.d/
why doesn't LXTerminal?

Re: LXTerminal doesn't run /etc/profile.d/

Posted: Wed Aug 21, 2013 2:42 am
by jojopi
A login shell sources /etc/profile (which typically sources /etc/profile.d/*), and ~/.bash_profile or ~/.bash_login or ~/.profile (the first that exists). An interactive shell that is not a login shell sources /etc/bash.bashrc and ~/.bashrc instead. (Typically the *profile files will source the *bashrc ones, so that bashrc commands run in all interactive shells.)

A console or ssh login is normally a login shell, and a GUI terminal emulator is normally not. To run a login shell in LXTerminal, use the command "lxterminal -l".