Comment 13 for bug 64064

Revision history for this message
Evan Carroll (evancarroll) wrote :

Ok so everyone is for doing this pam, I found a (slightly) better place to do this than gdm anyway. Someone should make note if this is done in pam to remove the related lines in ~/.bash_profile too. I applied a patch instead of to gdm, too: /etc/X11/Xsession.d/99x11-common_start

ecarroll@x60s:/etc/X11/Xsession.d$ diff 99x11-common_start 99x11-common_start2 -c1
*** 99x11-common_start 2007-05-17 13:58:52.000000000 -0500
--- 99x11-common_start2 2007-05-17 13:59:05.000000000 -0500
***************
*** 4,5 ****
--- 4,10 ----

+ # set PATH so it includes user's private bin if it exists
+ if [ -d ~/bin ] ; then
+ PATH=~/bin:"${PATH}"
+ fi
+
  exec $STARTUP

I chose to patch this into /etc/X11/Xsession.d/99x11-common_start because that way it would work despite what graphical login shell was used.

This works perfectly, and can be used as a fix until someone hacks a patch into pam.