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 wouldn't use the standard />/ login procedure and build the environment from there, but whatever. />/ />/ 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?
/
The config files are in /etc/X11/xdm.  Xsession even has scripting to
source profile and ~./bash_profile.


I'm resurrecting this thread because I discovered quite by accident the same situation. I've been getting some strange errors in compiling and building some of the things I've been doing, and, just on a lark, typed 'echo $PATH' The results were amazing--not at all what I expected and didn't have most of what I'd put in there building [B]LFS. I checked both a terminal and init 3 and my path was what I expected. Then I remembered this thread.

Except for stuff necessary for building, I want to make most of the $PATH global for any other users of this system. I put the building stuff in ~.bashrc. However, I'm not quite sure--I've always been weak in this area--how to do it globally with xdm. Here's what I've gathered how xdm starts up:

Xsetup-->xlogin widget-->Xstartup (as root)-->Xsession (as user--looks for ~.xsession also)

It looks like Xsession is the place to do my global stuff. I think the syntax would be just a line

source /etc/profile

Should I play it really safe and put a test in?

if [  -f /etc/profile ]; then
  source /etc/profile
fi

Any comments, suggestions sarcasm????

Thanks,

Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to