I have small problem with my environment variables, particularly the $PATH. I have set the PATH in /etc/environment to: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:."
It was a small modification to include the current path "." at the end. If I let the system boot to the kdm login screen, and do ctrl+alt+F2 to login on another tty as a regular user, I get the proper $PATH output when issuing a `set` command or `echo $PATH`. The same happens when I login as root. PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:.
Going back to kdm with ctrl+alt+F7 and logging in with my regular user account will bring me to my KDE screen. So when I fire up a terminal (Konsole) in KDE, the $PATH will look completely different: PATH=/opt/kde3/bin:/opt/kde3/games:/usr/local/bin:/opt/kde3/bin:/usr/bin:/bin:/opt/kde3/games:/usr/games
Notice that /opt/kde3/bin and /opt/kde3/games appear twice, and that /sbin is missing? It appears that for some reason $PATH is getting completely overwritten. Doing a `su <user>` to login as another user in the existing terminal will once again show appropriate $PATH as defined in /etc/environment.
Any ideas what might be causing this and how to prevent it?
My kde version is 3.5.10.