Page 1 of 1

.profile not being executed [SOLVED]

Posted: Sun Mar 20, 2011 4:08 pm
by opensas
HI, I've just installed latest version of linux mint lxde, and updated it...

I think that my .profile file at $HOME is not being executed, neither .bash_profile not .bash_login

in a text console (ctrl-al-F1..F6) it works ok, the problem seems to be inside lxde, or xorg to be more precise... strange

I tried with lxterminal and with guake, and it's the same

any idea what might be the problem?

Re: .profile not being executed

Posted: Mon Mar 21, 2011 2:27 am
by bitmason
check for permissions - just to eliminate the possibility:

Code: Select all

ls -l ~/.profile

Re: .profile not being executed

Posted: Mon Mar 21, 2011 7:39 am
by opensas
oh, sorry

I really was in a hurry, and just installed ubuntu...

with more time I'll surely give mint lxde another try

--

BTW I've tried manually source .profile and it worked...

Re: .profile not being executed

Posted: Tue Mar 22, 2011 1:52 am
by deivid
.profile is only supposed to be sourced for login shells (ssh session for example). If you're just opening a terminal window once you've logged into your desktop, only .bashrc is to be sourced.

Re: .profile not being executed

Posted: Tue Mar 22, 2011 2:18 am
by opensas
you were right!!!

when I updated .profile, I had to source it

messing around with .bashrc did the trick

thanks a lot deivid

Re: .profile not being executed [SOLVED]

Posted: Fri Mar 25, 2011 3:55 pm
by deivid
You are very welcome!