Draft: Avoid setenv() to transfer data
Avoid setenv() as much as we can, and use our own internal data to fetch the content of these environment variables we used to set.
Closes: #2463
Avoid setenv() as much as we can, and use our own internal data to fetch the content of these environment variables we used to set.
Closes: #2463