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
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 bin:"${ PATH}"
+ if [ -d ~/bin ] ; then
+ 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.