---
title: environment
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsworkspace/launchconfigurationkey/environment
---

# environment

The value is an NSDictionary, mapping NSStrings to NSStrings, containing environment variables to set for the new app.  Ignored if a new instance of the app is not launched. This constant is not available to sandboxed apps.

## Declaration

```swift
static let environment: NSWorkspace.LaunchConfigurationKey
```

## See Also

### Type Properties

- [appleEvent](appkit/nsworkspace/launchconfigurationkey/appleevent.md)
- [architecture](appkit/nsworkspace/launchconfigurationkey/architecture.md)
- [arguments](appkit/nsworkspace/launchconfigurationkey/arguments.md)
