Exactly
Could be gdm/kdm/xdm or gnome through gconf (I don't really know gconf and gnome).
A few days ago, I switched back to gnome and gnome-noob that I am, I realised that setting the proxy from the gnome menu could affect the environment variable http_proxy. I need a centralized configuration independent of the WM and even without X so I quickly removed it.
No Xorg doesn't set variables afaik.
You can check this by loggin in user and bypass gdm/xdm/..
xinit /usr/bin/xterm -- :0
This starts X without WM and starts xterm.
then try echo $PATH
Actually PAM can also set PATH but I don't use it.
cgjones you could try to find where it's referenced:
Code:
grep -r "/usr/bin/X11" /etc
Anyway, here /usr/bin/X11 also exist and points to /usr/bin. I got xorg 7 from experimental at the time so did a lot of things manually. I think I removed also the /usr/bin/X11 from the PATH. It doesn't make any harm to have /usr/bin/X11 pointing to /usr/bin and /usr/bin/X11 in the PATH...