you can look to the scripts in /etc/X11. Does using gdm to log into a non GNOME environment set the same PATH? -- $PATH variable in Gnome wrong https://launchpad.net/bugs/94522