[SOLVED] Setting environment variables on Linux/Unix/OSX? lazarus / 32-Linux ---------------------------------------------------------------------- BigChimp ยท 2011-11-16 13:57 Hi, With the GetEnvironmentVariable function one can retrieve the content of environment variables. I can set an environment variable on Windows with the SetEnvironmentVariable procedure in the windows unit. Is there an equivalent that does that on unix like systems such as Linux/OSX/FreeBSD? Thanks. Edit: answer from mailing list, Michael Van Canneyt: > No. Unix works differently. > > Environment variables are specified on startup, and are then immutable. > > If you want to specify the environment for a process, you must do it at the > start.