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

Re: stuff in ~/bin won't run



On Wed, Jan 14, 2009 at 04:16:57PM -0800, Mike Castle wrote:
> On Wed, Jan 14, 2009 at 8:33 AM, JoeHill <joehill@teksavvy.com> wrote:
> > The funny thing is, I already have this in my .bash_profile:
> >
> >  # set PATH so it includes user's private bin if it exists
> > if [ -d ~/bin ] ; then
> >    PATH=~/bin:"${PATH}"
> > fi
> 
> I don't think .bash_profile gets sourced when you log in via an
> XDM/GDM type session. (After all, when would it, since you don't
> really have a login shell.)


Possible fix:

  echo 'if [ $SHELL = /bin/bash ]; then . $HOME/.bash_profile; fi' > /etc/X11/Xsession.d/91bash_profile

This looks all too simple so someone must have thought of it previously 
and decided not to use it. Why?

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: