I think that these two functions are logically separate, and I suggest
that they be separated. I propose that a file /etc/environment is used to
set the process environment. This would be sourced by /etc/profile. It
would also be sourced by the system Xsession script.
I like this idea.
--
"It is error alone which needs the support of government. Truth
can stand by itself."
--Thomas Jefferson