Gio.AppLaunchContext.get_environment

### Method

# Gio AppLaunchContextget_environment

since: 2.32

#### Declaration [src]

    char**
    g_app_launch_context_get_environment (
      GAppLaunchContext* context
    )

#### Description [src]

Gets the complete environment variable list to be passed to the child process when `context` is used to launch an application. This is a `NULL`-terminated array of strings, where each string has the form `KEY=VALUE`.

Available since: 2.32

#### Return value

Type: An array of `filename`

the child’s environment.

The array is `NULL`-terminated.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
Each element is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.