Top | ![]() |
![]() |
![]() |
![]() |
PkDesktop * | pk_desktop_new () |
gboolean | pk_desktop_open_database () |
GPtrArray * | pk_desktop_get_files_for_package () |
GPtrArray * | pk_desktop_get_shown_for_package () |
gchar * | pk_desktop_get_package_for_file () |
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.
PkDesktop *
pk_desktop_new (void
);
NOTE: This method is unused and will be removed next time the library soname changes!
Since: 0.5.3
gboolean pk_desktop_open_database (PkDesktop *desktop
,GError **error
);
This method is unused and will be removed next time the library soname changes!
desktop |
a valid PkDesktop instance |
|
error |
a GError to put the error code and message in, or |
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.
desktop |
a valid PkDesktop instance |
|
package |
the package name, e.g. "gnome-power-manager" |
|
error |
a GError to put the error code and message in, or |
string array of results, free with g_ptr_array_unref()
NOTE: This method is unused and will be removed next time the library soname changes!.
[transfer container][element-type utf8]
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
desktop |
a valid PkDesktop instance |
|
package |
the package name, e.g. "gnome-power-manager" |
|
error |
a GError to put the error code and message in, or |
string array of results, free with g_ptr_array_unref()
NOTE: This method is unused and will be removed next time the library soname changes!.
[transfer container][element-type utf8]
Since: 0.5.3
gchar * pk_desktop_get_package_for_file (PkDesktop *desktop
,const gchar *filename
,GError **error
);
Returns the package name that owns the desktop file. Fast.
desktop |
a valid PkDesktop instance |
|
filename |
a fully qualified filename |
|
error |
a GError to put the error code and message in, or |
package name, or NULL
NOTE: This method is unused and will be removed next time the library soname changes!
Since: 0.5.3