[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash isn't reading ~/.profile file when login from GNOME



Andrei POPESCU wrote:
> On Ma, 20 aug 19, 10:36:19, Greg Wooledge wrote:
>> On Tue, Aug 20, 2019 at 02:27:40PM +0000, Vipul wrote:
>>> Hi there,
>>>
>>> From few days, I'm trying find answer of a question "which program does
>>> read ~/.profile if I login from graphical user interface (for ex: GNOME)?".
>>
>> https://wiki.debian.org/Xsession
>> https://wiki.debian.org/EnvironmentVariables
>>
>> These are, of course, incomplete.
>>
>> The short answer is: if you login through a Display Manager (a graphical
>> login program), NOTHING reads ~/.profile.  Ever.
> 
> Some (most?) X terminal emulators have the option to start a login 
> shell, which would read ~/.profile.
> 

Probably, gnome-terminal is not a X terminal emulator but, it does able
to recognize variables set in ~/.profile file when login from GNOME
interface. Why is so?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: