AppInfo.createFromCommandline

Creates a new #GAppInfo from the given information.

Note that for commandline, the quoting rules of the Exec key of the freedesktop.org Desktop Entry Specification

are applied. For example, if the commandline contains percent-encoded URIs, the percent-character must be doubled in order to prevent it from being swallowed by Exec key unquoting. See the specification for exact quoting rules.

interface AppInfo
static
createFromCommandline

Parameters

commandline string

the commandline to use

applicationName string

the application name, or null to use commandline

flags gio.types.AppInfoCreateFlags

flags that can specify details of the created #GAppInfo

Return Value

Type: gio.app_info.AppInfo

new #GAppInfo for given command.