Version: unspecified (using Devel) OS: Linux Users can use ~/.profile to set environment variables for their session. GNOME will source this file, and any changes that it makes to the environment apply to the entire GNOME session. For KDE, the equivalent feature is to put scripts in ~/.kde/env/ ending in ".sh". It would be nice if KDE also read ~/.profile. In other words, I would like KDE to act as if the following command were executed: $ ln -sh ~/.profile ~/.kde/env/profile.sh Reproducible: Didn't try This caused some problems for me when I was trying to run some of my scripts in ~/bin/ using Krunner, which didn't have my custom $PATH.
the Xsession script supplied with kdm does just that, and it's the right place to do it - everything else would be just wrong. if your distribution's Xsession script does something different ... oh, well - tough luck.
Thanks for pointing me to that script. I looked there, and I realized that if my $SHELL is set to zsh, then it sources ~/.zprofile instead of ~/.profile. I guess GNOME just always does ~/.profile. So my fix is this: $ ln -s .profile ~/.zprofile Since my .profile works for either shell. Thanks!