Snapd.SystemInformation

g GObject.Object GObject.Object Snapd.SystemInformation Snapd.SystemInformation GObject.Object->Snapd.SystemInformation

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_architecture ()

get_binaries_directory ()

get_build_id ()

get_confinement ()

get_kernel_version ()

get_managed ()

get_mount_directory ()

get_on_classic ()

get_os_id ()

get_os_version ()

get_refresh_hold ()

get_refresh_last ()

get_refresh_next ()

get_refresh_schedule ()

get_refresh_timer ()

get_sandbox_features ()

get_series ()

get_store ()

get_version ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

architecture

str

r/w/co

System architecture

binaries-directory

str

r/w/co

Directory with snap binaries

build-id

str

r/w/co

Unique build ID for snap build

confinement

Snapd.SystemConfinement

r/w/co

Confinement level supported by system

kernel-version

str

r/w/co

Kernel version

managed

bool

r/w/co

True if snapd managing the system

mount-directory

str

r/w/co

Directory snaps are mounted in

on-classic

bool

r/w/co

True if running in a classic system

os-id

str

r/w/co

Operating system ID

os-version

str

r/w/co

Operating system version

refresh-hold

GLib.DateTime

r/w/co

Time refreshes will be applied

refresh-last

GLib.DateTime

r/w/co

Last time a refresh occurred

refresh-next

GLib.DateTime

r/w/co

Next time a refresh is scheduled for

refresh-schedule

str

r/w/co

Refresh schedule

refresh-timer

str

r/w/co

Refresh timer

sandbox-features

int

r/w/co

Sandbox features

series

str

r/w/co

Snappy release series

store

str

r/w/co

Snap store

version

str

r/w/co

Snappy version

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.SystemInformation(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.SystemInformationClass

Snapd.SystemInformation contains information about the system snapd is running on.

New in version 1.0.

get_architecture()
Returns:

an architecture.

Return type:

str

Get the architecture this system is using, e.g. “amd64”.

New in version 1.64.

get_binaries_directory()
Returns:

a directory.

Return type:

str

Get the directory snap binaries are stored, e.g. “/snap/bin”.

New in version 1.11.

get_build_id()
Returns:

a build ID.

Return type:

str

Gets the unique build ID for the snap build, e.g. “efdd0b5e69b0742fa5e5bad0771df4d1df2459d1”

New in version 1.40.

get_confinement()
Returns:

a Snapd.SystemConfinement.

Return type:

Snapd.SystemConfinement

Get the level of confinement the system supports, e.g. Snapd.SystemConfinement.STRICT.

New in version 1.15.

get_kernel_version()
Returns:

a version string.

Return type:

str

Get the version of the kernel snapd is running on, e.g. “4.10.0-15-generic”.

New in version 1.11.

get_managed()
Returns:

True if running on a managed system.

Return type:

bool

Get if snapd is running on a managed system.

New in version 1.7.

get_mount_directory()
Returns:

a directory.

Return type:

str

Get the directory snaps are mounted, e.g. “/snap”.

New in version 1.11.

get_on_classic()
Returns:

True if running on a classic system.

Return type:

bool

Get if this system is a classic system.

New in version 1.0.

get_os_id()
Returns:

an operating system ID.

Return type:

str

Get the operating system ID, e.g. “ubuntu”.

New in version 1.0.

get_os_version()
Returns:

a version string.

Return type:

str

Get the operating system version, e.g. “16.04”.

New in version 1.0.

get_refresh_hold()
Returns:

a GLib.DateTime.

Return type:

GLib.DateTime or None

Get the time refreshes will be applied at, or None if they are applied immediately.

New in version 1.42.

get_refresh_last()
Returns:

a GLib.DateTime.

Return type:

GLib.DateTime or None

Get the time the last refresh occurred, or None if has not occurred.

New in version 1.42.

get_refresh_next()
Returns:

a GLib.DateTime.

Return type:

GLib.DateTime or None

Get the time the next refresh is scheduled for, or None if none has been scheduled.

New in version 1.42.

get_refresh_schedule()
Returns:

a Snap refresh schedule string.

Return type:

str or None

Get the schedule when snap refreshes will occur.

New in version 1.42.

get_refresh_timer()
Returns:

a Snap refresh timer string.

Return type:

str or None

Get the timer that refreshes are running to.

New in version 1.42.

get_sandbox_features()
Returns:

a hash table of string arrays keyed by backend name.

Return type:

{str: [str]}

Gets the sandbox features that snapd provides. Each backend in snapd provides a list of features that it supports. For example, the “confinement-options” backend may provide “classic”, “devmode” and “strict”.

New in version 1.42.

get_series()
Returns:

a series string.

Return type:

str

Get the series of snapd running, e.g. “16”.

New in version 1.0.

get_store()
Returns:

a store id or None.

Return type:

str or None

Get the store being used by snapd, e.g. “Ubuntu”

New in version 1.7.

get_version()
Returns:

a version string.

Return type:

str

Get the version of snapd running, e.g. “2.11+ppa174-1”.

New in version 1.0.

Property Details

Snapd.SystemInformation.props.architecture
Name:

architecture

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

System architecture

Snapd.SystemInformation.props.binaries_directory
Name:

binaries-directory

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Directory with snap binaries

Snapd.SystemInformation.props.build_id
Name:

build-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Unique build ID for snap build

Snapd.SystemInformation.props.confinement
Name:

confinement

Type:

Snapd.SystemConfinement

Default Value:

Snapd.SystemConfinement.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Confinement level supported by system

Snapd.SystemInformation.props.kernel_version
Name:

kernel-version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Kernel version

Snapd.SystemInformation.props.managed
Name:

managed

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True if snapd managing the system

Snapd.SystemInformation.props.mount_directory
Name:

mount-directory

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Directory snaps are mounted in

Snapd.SystemInformation.props.on_classic
Name:

on-classic

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True if running in a classic system

Snapd.SystemInformation.props.os_id
Name:

os-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Operating system ID

Snapd.SystemInformation.props.os_version
Name:

os-version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Operating system version

Snapd.SystemInformation.props.refresh_hold
Name:

refresh-hold

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Time refreshes will be applied

Snapd.SystemInformation.props.refresh_last
Name:

refresh-last

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Last time a refresh occurred

Snapd.SystemInformation.props.refresh_next
Name:

refresh-next

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Next time a refresh is scheduled for

Snapd.SystemInformation.props.refresh_schedule
Name:

refresh-schedule

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Refresh schedule

Snapd.SystemInformation.props.refresh_timer
Name:

refresh-timer

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Refresh timer

Snapd.SystemInformation.props.sandbox_features
Name:

sandbox-features

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Sandbox features

Snapd.SystemInformation.props.series
Name:

series

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snappy release series

Snapd.SystemInformation.props.store
Name:

store

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snap store

Snapd.SystemInformation.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snappy version