i think the system has to exec the .bash_profile as bash do when i'm logging in a console
for me xdm logging must exec the same protocol as a console logging. so in th xsession files, we have to add a line to exec profiles or to launch in a bash --login sylvain