Gio.DesktopAppInfo.new_from_filename

function new_from_filename(filename: String): Gio.DesktopAppInfo {
    // Gjs wrapper for g_desktop_app_info_new_from_filename()
}
  

Creates a new Gio.DesktopAppInfo.

filename

the path of a desktop file, in the GLib filename encoding

Returns

a new Gio.DesktopAppInfo or null on error.