DesktopAppInfo

constructor(desktopId: String)

Creates a new class@Gio.DesktopAppInfo based on a desktop file ID.

A desktop file ID is the basename of the desktop file, including the .desktop extension. GIO is looking for a desktop file with this name in the applications subdirectories of the XDG data directories (i.e. the directories specified in the XDG_DATA_HOME and XDG_DATA_DIRS environment variables). GIO also supports the prefix-to-subdirectory mapping that is described in the Menu Spec (i.e. a desktop ID of kde-foo.desktop will match /usr/share/applications/kde/foo.desktop).

Return

a new class@Gio.DesktopAppInfo, or NULL if no desktop file with that ID exists.

Parameters

desktopId

the desktop file ID


constructor(keyFile: <Error class: unknown class>)

Creates a new class@Gio.DesktopAppInfo.

Return

a new class@Gio.DesktopAppInfo or NULL on error.

Since

2.18

Parameters

keyFile

an opened type@GLib.KeyFile


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)