.bash_profile problem

t scytale scytale at gmail.com
Thu Apr 21 11:22:55 UTC 2005


On 4/21/05, Behrang Saeedzadeh <behrangsa at gmail.com> wrote:
> Hi
>  
>  I've added the following lines to my .bash_profile:
>  
>  JAVA14_HOME=/home/behrangsa/Java/j2sdk1.4.2_08
>  JAVA50_HOME=/home/behrangsa/Java/jdk1.5.0_02
>  
>  JAVA_HOME=$JAVA50_HOME
>  export JAVA_HOME
>  
>  PATH=$PATH:$JAVA_HOME/bin
>  export PATH
>  
> But whenever I turn on my system, they aren't applied. I've to go to the
> terminal and write source .bash_profile to activate them and only for the
> current terminal. How can I enforce them to be applied whenever the
> "behrangsa" user logs in?

i think this is becuase .bash_profile is sourced only for login
shells. if you are running terminals in an x session by default they
are run as non-login. you can

- put the entries in .bashrc instead
- or make your xterms, gnome-terminal, whatever run as login shells
(there's usually an option)

t
>  
>  - Behi
> -- 
> 
> Behrang Saeedzadeh
> http://www.jroller.com/page/behrangsa 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
> 
>




More information about the ubuntu-users mailing list