User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

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

Wed Aug 21, 2013 1:40 am

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?
Antikythera

User avatar
jojopi
Posts: 3274
Joined: Tue Oct 11, 2011 8:38 pm

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

Wed Aug 21, 2013 2:42 am

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".

Return to “Beginners”