utils_install_metadata_file


Description:


[ Version ( since = "0.14.0" ) ]
public bool utils_install_metadata_file (MetadataLocation location, string filename, string origin, string destdir) throws Error

Installs an AppStream MetaInfo, AppStream Metadata Catalog or AppStream Icon tarball file to the right place on the filesystem.

Please note that this function does almost no validation and may guess missing values such as icon sizes and origin names. Ensure your metadata is good before installing it.

Parameters:

location

the MetadataLocation, e.g. as_metadata_location_cache

filename

the full path of the file to install

origin

the origin to use for the installation, or null

destdir

the destdir to use, or null

Returns:

true for success, false if error is set


Namespace: AppStream
Package: appstream