Bug 244269 - KDE should read ~/.profile at the same time as ~/.kde/env/*.sh
Summary: KDE should read ~/.profile at the same time as ~/.kde/env/*.sh
Status: RESOLVED WORKSFORME
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 04:46 UTC by Ryan Thompson
Modified: 2010-07-12 22:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Thompson 2010-07-12 04:46:07 UTC
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.
Comment 1 Oswald Buddenhagen 2010-07-12 17:17:15 UTC
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.
Comment 2 Ryan Thompson 2010-07-12 22:51:10 UTC
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!