[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Does X11 ignore ~/.bash_profile?



>>>>> "Martin" == Martin Fluch <fluch@rock.helsinki.fi> writes:

  Martin> See 'man bash' how the bash starts.  In short, when you
  Martin> login on console (bash ist invoked as a login shell)
  Martin> /etc/profile and than ~/.bash_profile is
  Martin> executed. Otherwhise only ~/bashrc is executed.

Yes. I think that xterm are non login shells by default. And it's
xdm's job to source the proper scripts to set up environnement
variables as if you had logged in. Maybe the right solution is to add
something in your ~/.xinitrc

  Martin> Martin

  Martin> On Fri, 24 Sep 1999, Johann Spies wrote:

  >> I am trying to install real player and have the following lines
  >> in my ~/.bash_profile:
  >> 
  >> LD_LIBRARY_PATH=/usr/local/src/rvplayer5.0 export LD_LIBRARY_PATH
  >> PATH=$PATH:/usr/local/src/rvplayer5.0
  >> 
  >> When I do an "echo $PATH" in the console, I get:
  >> 
  >> 
  >> .::/home/jhspies/bin:/usr/gnu/bin:/usr/bin/X11:/use/X11R6/bin:
  >> /usr/local/bin:/usr/ucb:/bin:/usr/bin:/usr/etc:/etc:/sbin:
  >> /usr/sbin:/usr/games:/usr/local/sbin:/home/jhspies/bin:
  >> /usr/arx/bin:/usr/local/lib:/usr/local/pgsql/bin:
  >> /home/jhspies/Office51/bin:/usr/local/src/rvplayer5.0
  >> 
  >> However when I do it in xterm I get
  >> 
  >> .::/home/jhspies/bin:/usr/gnu/bin:/usr/bin/X11:/use/X11R6/bin:
  >> /usr/local/bin:/usr/ucb:/bin:/usr/bin:/usr/etc:/etc:/sbin:
  >> /usr/sbin:/usr/games:/usr/local/sbin:/home/jhspies/bin:
  >> /usr/arx/bin:/usr/local/lib
  >> 
  >> Does X11 ignore ~/.bash_profile?

Yes. Since it does not know what shell you are using. It's a features
of bash, and logging in with xdm does not start a login shell. 

-- 
Laurent Martelli
martelli@iie.cnam.fr


Reply to: