When KiX starts, it gets a copy of the environment. Any venviro vars set by another process will not be seen by KiX. Enviro vars are not a good way to pass info between processes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.