Top | ![]() |
![]() |
![]() |
![]() |
#define | PK_DESKTOP_DEFAULT_DATABASE |
#define | PK_DESKTOP_DEFAULT_APPLICATION_DIR |
struct | PkDesktop |
struct | PkDesktopClass |
Desktop metadata such as icon name and localised summary may be stored in a local sqlite cache, and this module allows applications to query this.
gboolean pk_desktop_open_database (PkDesktop *desktop
,GError **error
);
Since 0.5.3
GPtrArray * pk_desktop_get_files_for_package (PkDesktop *desktop
,const gchar *package
,GError **error
);
Return all desktop files owned by a package, regardless if they are shown in the main menu or not.
Since 0.5.3
GPtrArray * pk_desktop_get_shown_for_package (PkDesktop *desktop
,const gchar *package
,GError **error
);
Return all desktop files owned by a package that would be shown in a menu, i.e are an application
Since 0.5.3
#define PK_DESKTOP_DEFAULT_DATABASE LOCALSTATEDIR "/lib/PackageKit/desktop-files.db"
The default location for the database
#define PK_DESKTOP_DEFAULT_APPLICATION_DIR "/usr/share/applications"
The default location for the desktop files