restore system environment for subprocesses
Review Request #128209 - Created June 16, 2016 and submitted
When running in some kind of container (esp. AppImage), we need to restore the original system environment for all external processes. This patch does that, using the information about the original environment which was set by the startup shell script.
Can run cmake from KDevelop AppImage now without library errors.