launchd.plist is not a file, but rather a type of file. It is an XML document that holds parameters which can be loaded into launchd. Here we’ll see how to use it to set environment variables. Setting a Variable For our first example, we’ll set the variable FOO to the value of BAR. Let’s look at an example and we’ll break it down: