environment variables change in X
Hi all,
When I start up X, many of my environment variables change. The one that is currently causing the problem is my SHELL variable. When I'm not in X, my shell is bash, but in X, my shell changes to sh.
Questions:
1) Where do environment variables come from? (Is it /etc/profile?) More specifically, where does X get its environment variables from? I assume it's from a different place, because my env. vars. are different in X.
2) How do it set it so that bash is my default shell in X?
One interesting thing: when I "su" in X to become root, my environment variables change again, and bash becomes my shell again. What's going on?
If you know of any good links that describe this stuff in detail, I'd love to have them. Thanks for any assistance.
|