Sounds like your .bash_profile is not executed while you log in in a graphical mode. Check it. You may e.g. put a line like
echo "we are in .bash_profile"
into the file and look whether the message appears in .xsession-errors.
How do you log in? Do you use kdm (kde standard login manager)?