### Virtual Method

# Gio AppInfo get_commandline

since: 2.20

#### Declaration

    const char*
    get_commandline (
      GAppInfo* appinfo
    )

#### Description

Gets the commandline with which the application will be started.

Available since: 2.20

#### Return value

Type: `const char*`

A string containing the `appinfo`‘s commandline, or `NULL` if this information is not available.

The data is owned by the called function.
The return value can be `NULL`.
The value is a file system path, using the OS encoding.