用gdm登录 ~/.profile就不会被 source ?

复制内容到剪贴板
代码:
[No.500 02:38:04 ~ ]# cat  ~/.profile
[B]# ~/.profile: executed by Bourne-compatible login shells.[/B]

if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
        . ~/.bashrc
    fi
fi

export JAVA_HOME=/opt/jdk1.5.0_01/
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin

mesg n
[No.501 02:38:07 ~ ]# java
bash: java: command not found
[No.502 02:38:10 ~ ]# mesg
is y
[No.503 02:38:15 ~ ]# . .profile
[No.504 02:38:31 ~ ]# mesg
is n
如题
GDM在用户登录后不配置 profie?
如何解决?