Gio.DesktopAppInfo.search
function search(search_string: String): Array(Array(String)) { // Gjs wrapper for g_desktop_app_info_search() }
Searches desktop files for ones that match search_string.
The return value is an array of strvs. Each strv contains a list of applications that matched search_string with an equal score. The outer list is sorted by score so that the first strv contains the best-matching applications, and so on. The algorithm for determining matches is undefined and may change at any time.
- search_string
the search string to use
- Returns
a list of strvs. Free each item with GLib.strfreev and free the outer list with GLib.free.