ADC Home > Reference Library > Technical Q&As > Carbon > Runtime Architecture >
|
Q: Where do commands that I execute via A: Environment variables are always inherited from the parent process. Any process that you execute from Terminal will inherit Terminal's environment variables. When you execute your application by double clicking in the Finder, the application is launched using Launch Services. Finder's parent process is the WindowServer, so Finder inherits the environment variables from the WindowServer. When you perform a command via WindowServer can set additional global environment variables which can be
inherited by all applications in [Oct 29, 2003] |