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

Re: $PATH and /etc/profile



Simon L wrote:
> In my /etc/profile file, I wrote: 
> "PATH="/opt/j2sdk1.4.2_04/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sbin:/usr/sbin:/sbin""
> 
> When I log in text mode, the entire PATH is there as I want, I can 
> "startx" and when I open a terminal, the PATH is perfect.
> Now, if I start the computer with KDM and that I run a terminal, the 
> PATH is only: "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"
> 
> How can I fix that?

By starting a login shell.  Create ~/.xsession with the following:

  #!/bin/bash --login
  exec x-session-manager # or gnome-session or whatever.

Make sure it is executable or it will have no effect.

  chmod a+x ~/.xsession

Bob

P.S.  Does it seem like I answer this question about every other week?
Probably only during weeks that I can find the time to read d-u. :-/

Attachment: pgp8jxTrqHThK.pgp
Description: PGP signature


Reply to: