Description:
public class AppInfoManager :
Object
A singleton class that caches GLib.AppInfo objects. Singletons are evil, yes, but this on slightly less so because the exposed API is
immutable.
To detect when any of the managed AppInfo objects changes, appears, or goes away listen for the 'changed' signal.
Content:
Static methods:
Methods:
- public void clear ()
- public unowned string[]? get_categories (string id)
Look up XDG categories for for desktop id or file path @id. Returns null
if id is not found. This method will do sync IO if the desktop file for @id is not already cached. So if you are living in an async world
you must first do an async call to lookup_async(id) before calling this method, in which case no sync io will be done.
- public unowned string[]? get_keywords (string id)
Look up keywords for for desktop id or file path @id. The keywords will be
an amalgamation of the X-GNOME-Keywords and X-AppInstall-Keywords fields from the .desktopfile. Returns null if id is not found. This
method will do sync IO if the desktop file for @id is not already cached. So if you are living in an async world you must first do an
async call to lookup_async(id) before calling this method, in which case no sync io will be done.
- public string? get_path (string id)
Look up the full path to the desktop file for desktop id @id. Returns null
if @id is not found. This method will do sync IO if the desktop file for @id is not already cached. So if you are living in an async world
you must first do an async call to lookup_async(id) before calling this method, in which case no sync io will be done.
- public AppInfo? lookup (string id)
Look up an AppInfo given its desktop id or absolute path. The desktop id
is the base filename of the .desktop file for the application including the .desktop extension.
- public async AppInfo? lookup_async (string id) throws Error
Look up an AppInfo given its desktop id or absolute path. The desktop id
is the base filename of the .desktop file for the application including the .desktop extension.
Signals:
Inherited Members:
All known members inherited from class GLib.Object