4
1
In Ubuntu the path variable is stored in /etc/environment. This is mine (I've made no changes to it, this is the system default):
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
but when I examine my PATH variable:
$ echo $PATH
/home/dan/bin:/home/dan/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11
You'll notice /usr/games is missing (it was there up until a few days ago). My /etc/profile makes no mention of PATH. My ~/.profile is the default and only has:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
This only happens in gnome, not in tty1-6. This is missing from both gnome terminal and when I try to call applications from the applications dropdown. Anyone know what could be causing this?
Thanks.
2Yes, I'm familiar with that solution, but that is a user level solution for a system level problem. I would actually like to address the problem. There are plenty of places I could just override the PATH variable, like /etc/profile as well, but that has nothing to do with PATH on Ubuntu, so I would prefer to address it where the problem lies. – Jarvin – 2010-05-18T16:58:10.990
Today I have the same problem as the OP: I rebooted and suddenly the correct
PATH
is no longer available inbash
. It was yesterday. Something is actually broken... – Izkata – 2014-03-30T14:49:17.400