From konsole in KDE
bash-2.05b$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
Then when I hit ctrl+alt+f1 and log in
bash-2.05b$ echo $PATH
/usr/local/bin:/usr/bin:/usr/games:/bin:/usr/bin/X11
If i log in a console, /usr/games is in my path, but when I log into KDM it is not. My kdm-config file has /usr/games in it, and it is the only path there that doesn't work. Any ideas?
Mike
From konsole in KDE
bash-2.05b$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
Then when I hit ctrl+alt+f1 and log in
bash-2.05b$ echo $PATH
/usr/local/bin:/usr/bin:/usr/games:/bin:/usr/bin/X11
hello mike,
the path really should be the same for both, i would edit my ~/.bashrc file or ~/.bash_profile and see what the path is getting set to. I am not a kde user - but i gott assume they ar enot messing with environment varibles.
Actually I don't have a .bashrc or bash_profile, however, I do have an /etc/bash.bashrc.
# System-wide .bashrc file for interactive bash(1) shells.
shopt -s checkwinsize
Well, I figured it out, but it still doesn't make sense to me. I had to add --login after the #!/bin/sh at the beginning of my kde2.sh startup script. What I don't understand is without the --login, it set every directory in my /etc/profile except the /usr/games dir.
edit!
wow - good find mike!
Bookmarks