# General Services

These are operations that do not fit into any of the other categories. They are automatically available in any qbs project file.

## Available Operations

### getenv

    qbs.getenv(name)

Tries to find a variable with the given name in the build environment and returns its value. If no such variable could be found, `undefined` is returned.

### getHostOS

    qbs.getHostOS(name)

Returns the name of the operating system on which qbs is running.

Note: Do not confuse this with the `qbs.targetOS` property, which represents the operating system on which the binaries produced by qbs will run.