Re: Proper environment settings`

2000-04-15 Thread Ethan Benson
On Fri, Apr 14, 2000 at 12:20:31PM -0500, Dan Myers wrote:
> Hiya,
> 
> Can someone give me the best route to change the PATH variable when inside an
> xsession.  Changing such things as .bashrc and .profile etc don't seem like 
> the
> answer to me?   Both for root and users.  

basically your using {x,w}dm and finding that your ~/.profile and
friends are being ignored.  this is due to these display managers
being broken (IMO) by not reading any of the user's environment (or
even /etc/profile) when setting up the session.  the solution assuming
your bash is not broken (some older potato versions were) is changing
the first line of /etc/X11/Xsession from #! /bin/bash to 
#! /bin/bash --login  

this will solve the problem so long as the user uses bash unfortunatly
not for other shells.

> TIA
> 
> 
> Dan Myers
> Web Developer 
> Strategic Information Services
> [EMAIL PROTECTED]
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 

-- 
Ethan Benson
http://www.alaska.net/~erbenson/


pgp3PkyhjT3Sa.pgp
Description: PGP signature


Re: Proper environment settings`

2000-04-15 Thread Eric G . Miller
On Fri, Apr 14, 2000 at 08:04:29PM +0200, Oswald Buddenhagen wrote:
> > Can someone give me the best route to change the PATH variable when
> > inside an xsession.  Changing such things as .bashrc and .profile
> > etc don't seem like the answer to me?   Both for root and users.  
> > 
> change the global ".profile": /etc/profile

Actually, for individual users, ~/.bashrc is the perfect place.  Just
source it in your ~/.xsession.

if [ -f $HOME/.bashrc ]; then
   source  $HOME/.bashrc
fi

-- 
¶ One·should·only·use·the·ASCII·character­set·when·compos­

» ing·email·messages.



Re: Proper environment settings`

2000-04-14 Thread Oswald Buddenhagen
> Can someone give me the best route to change the PATH variable when inside an
> xsession.  Changing such things as .bashrc and .profile etc don't seem like 
> the
> answer to me?   Both for root and users.  
> 
change the global ".profile": /etc/profile

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.