get_snaps_sync


Description:

[ Version ( since = "1.42" ) ]
public GenericArray<unowned Snap> get_snaps_sync (GetSnapsFlags flags, string[]? names, Cancellable? cancellable = null) throws Error

Get information on installed snaps (snaps with status snapd_snap_status_active).

If flags contains snapd_get_snaps_flags_include_inactive then also return snaps with status snapd_snap_status_installed.

If names is not null and contains at least one name only snaps that match these names are returned. If a snap is not installed it is not returned (no error is generated).

Parameters:

this

a Client.

flags

a set of GetSnapsFlags to control what results are returned.

names

A list of snap names or null.

cancellable

a Cancellable or null.

Returns:

an array of Snap or null on error.