Re: X/gdm overwrites some environment variables

2005-10-23 Thread Dan McGhee
Brandin Creech wrote: if [ -f /etc/profile ]; then source /etc/profile fi I think this type of test is overused; I see it in other scripts also. The single line 'source /etc/profile' works just fine: if /etc/profile exists and is readable, 'source /etc/profile' does just what you expec

Re: X/gdm overwrites some environment variables

2005-10-23 Thread Brandin Creech
--- Dan McGhee <[EMAIL PROTECTED]> wrote: > On Wed, Sep 07, 2005 at 06:30:58AM -0700, Dan Nicholson wrote: > > >The config files are in /etc/X11/xdm. Xsession even has scripting to > >source profile and ~./bash_profile. > > Should I play it really safe and put a test in? > > if [ -f /etc/prof

X/gdm overwrites some environment variables

2005-10-23 Thread Dan McGhee
On Wed, Sep 07, 2005 at 06:30:58AM -0700, Dan Nicholson wrote: / Archaic wrote: />/ >xdm isn't messing with the path in the way that you think. xdm is it's />/ >own login prompt. />/ />/ Thanks, that's a really good explanation. Same to Simon from the other />/ reply. I still don't understa

Re: X/gdm overwrites some environment variables

2005-09-08 Thread Simon Geard
On Wed, 2005-09-07 at 06:30 -0700, Dan Nicholson wrote: > OK, so now I'm convinced that xdm and gdm aren't as evil as I thought, > how can I configure them to mock my /bin/login procedure? Where are the > config files? Well, one of the key files for gdm is /etc/gdm/Xsession (assuming built with

Re: X/gdm overwrites some environment variables

2005-09-07 Thread Larry
On Wed, Sep 07, 2005 at 06:30:58AM -0700, Dan Nicholson wrote: > Archaic wrote: > >xdm isn't messing with the path in the way that you think. xdm is it's > >own login prompt. > > Thanks, that's a really good explanation. Same to Simon from the other > reply. I still don't understand why they wo

Re: X/gdm overwrites some environment variables

2005-09-07 Thread Archaic
On Wed, Sep 07, 2005 at 06:30:58AM -0700, Dan Nicholson wrote: > > OK, so now I'm convinced that xdm and gdm aren't as evil as I thought, > how can I configure them to mock my /bin/login procedure? Where are the > config files? In /etc I presume. I don't use either of them. Once you find it (a

Re: X/gdm overwrites some environment variables

2005-09-07 Thread Dan Nicholson
Archaic wrote: xdm isn't messing with the path in the way that you think. xdm is it's own login prompt. Thanks, that's a really good explanation. Same to Simon from the other reply. I still don't understand why they wouldn't use the standard login procedure and build the environment from th

Re: X/gdm overwrites some environment variables

2005-09-06 Thread Archaic
On Tue, Sep 06, 2005 at 09:33:44PM -0700, Dan Nicholson wrote: > > I agree that that works, and that's probably what I'm going to do. > Thanks for writing back. The reason that I haven't done this so far is > that I'm worried that there are things in /etc/profile that should only > be done at

Re: X/gdm overwrites some environment variables

2005-09-06 Thread Dan Nicholson
Randy McMurchy wrote: [EMAIL PROTECTED]: ~ > cat .profile if [ -f ~/.bashrc ]; then . ~/.bashrc fi == [EMAIL PROTECTED]: ~ > cat .bashrc . /etc/profile [snip everything else that I want for me] I agree that that works, and that's probably what I'm going to

Re: X/gdm overwrites some environment variables

2005-09-06 Thread Randy McMurchy
Dan Nicholson wrote these words on 09/06/05 22:25 CDT: > The "solution" I have is that I re-source half the profile scripts in my > ~/.bashrc: tinker-term.sh, xterm-titlebars.sh and dircolors.sh. Any > comments are much appreciated. I use the following and it works for all access methods to shel

X/gdm overwrites some environment variables

2005-09-06 Thread Dan Nicholson
Hi everyone, I've seen some remarks on this issue, but I'm hoping that someone can help me put them all together here. It seems that using a display manager like xdm or gdm, or even just running X, overwrites important variables set for a login shell. I don't like this behavior at all, and