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

[EMAIL PROTECTED]:/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.

-- 
would be nice to add ~/bin to the default PATH
https://bugs.launchpad.net/bugs/64064
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug contact for gdm in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to