Class
SnapdSnap
since: 1.0
Description [src]
final class Snapd.Snap : GObject.Object
{
/* No available fields */
}
SnapdSnap
contains Snap metadata.
Available since: 1.0
Instance methods
snapd_snap_get_confinement
Get the confinement this snap is using, e.g. SNAPD_CONFINEMENT_STRICT
.
since: 1.0
snapd_snap_get_contact
Get the means of contacting the snap developer, e.g. “mailto:developer@example.com”.
since: 1.13
snapd_snap_get_description
Get a multi-line description of this snap. The description is formatted using
a subset of Markdown. To parse this use a SnapdMarkdownParser
.
since: 1.0
snapd_snap_get_hold
Get the date this snap will re-enable automatic refreshing or NULL
if no
hold is present.
since: 1.64
snapd_snap_get_icon
Get the icon for this Snap, either a URL or an absolute path to retrieve it from snapd directly.
since: 1.0
snapd_snap_get_mounted_from
Gets the path this snap is mounted from, which is a .snap file for installed snaps and a directory for snaps in try mode.
since: 1.45
snapd_snap_get_name
Get the name of this snap. This is used to reference this snap, e.g. for installing / removing.
since: 1.0
snapd_snap_get_proceed_time
Returns the date and time after which a refresh is forced for this running snap in the next auto-refresh. By substracting the current date and time it’s possible to know how many time remains before the snap is forced to be refreshed.
since: 1.65
snapd_snap_get_publisher_display_name
Get the display name of the publisher who created this snap.
since: 1.42
snapd_snap_get_publisher_username
Get the username of the publisher who created this snap.
since: 1.42
snapd_snap_get_publisher_validation
Get the validation for the snap publisher, e.g.
SNAPD_PUBLISHER_VALIDATION_VERIFIED
.
since: 1.42
snapd_snap_get_revision
Get the revision for this snap. The format of the string is undefined. See also snapd_snap_get_version().
since: 1.0
snapd_snap_get_screenshots
Get the screenshots that are available for this snap.
deprecated: 1.45 since: 1.0
snapd_snap_get_status
Get the current status of this snap, e.g. SNAPD_SNAP_STATUS_INSTALLED.
since: 1.0
snapd_snap_get_store_url
Get a URL to the web snap store, e.g. “https://snapcraft.io/example”.
since: 1.60
snapd_snap_get_title
Get the title for this snap. If not available use the snap name instead.
since: 1.14
snapd_snap_get_tracking_channel
Get the channel that updates will be installed from, e.g. “stable”.
since: 1.7
snapd_snap_get_trymode
Get if this snap is running in try mode (installed locally and able to be directly modified).
since: 1.0
snapd_snap_get_version
Get the version for this snap. The format of the string is undefined. See also snapd_snap_get_revision().
since: 1.0
snapd_snap_get_website
Get the website of the snap developer, e.g. “http://example.com”.
since: 1.50
snapd_snap_match_channel
Finds the available channel that best matches the given name.
If none matches NULL
is returned.
since: 1.22
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.