Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Retaining env vars that are set after login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lorgoth
n00b
n00b


Joined: 12 Oct 2002
Posts: 24

PostPosted: Sun Mar 16, 2003 2:13 am    Post subject: Retaining env vars that are set after login Reply with quote

Okay, for the longest time I have been trying to deal w/ several "Gentooisms", but I am finally sick and tried of dealing w/ them so I decided to see if the forums could help me out. Here is the problem...

I keep at least two full versions of KDE (stable and development) on my system. I boot up to a text console and login. Then I decide to run the devel or stable version by sourcing a shell script that changes my environment variables accordingly and finally I startx. When X comes up I expect my shells to have this same environment. This works w/ the other Linux distros I have used, but not in Gentoo. I have done a bit of reading and playing around. From what I can tell this is due to the env.d stuff that Gentoo uses. It seems that profile.env thinks it should overwrite the path and my other KDE variables instead of inheriting the path from the shell that launched X. This doesn't seem like a very nice thing to me. Does anyone know a quick and easy way to solve my little problem? I would prefer do something like have profile.env just append to my current path or check to see if the KDE variables are already set and if they are then not set them to something new. I know that I can write a simple shell script to do this, but is this functionality built into the env.d scripts in some way that I have failed to realize or have I just completely missed the boat on this issue?

Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum