Applications
signals
changed
should emit when an app is installed or uninstalled but doesn’t always work
methods
query
:(string) => App[]
takes a string and returns a list of apps that match one of the following: app name, app description, executable name or .desktop file.reload
:() => void
explicitly reload the applicationlist
.
properties
list
:Application[]
a full list of available applications
Application
properties
app
: Gio.DesktopAppInfo the corresponding app info objectname
:string
name of the appdesktop
:string | null
the .desktop filedescription
:string | null
description of the appexecutable
:string
name of the executable binaryicon-name
:string
the Icon entry in the corresponding .desktop file, can be a named icon or a path to an imagefrequency
: ‘number’ number to take into consideration when sorting onquery
calls
methods
launch
:() => void
launches the app, you could also doUtils.execAsync(['bash', '-c', app.executable])
, but the launch method keeps track of the frequency of launches which is used to sort the querymatch
:(string) => boolean
returns whether a search term matches the appreload
:() => void
rereads .desktop files