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
--- 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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo