Snapd.App

g GObject.Object GObject.Object Snapd.App Snapd.App GObject.Object->Snapd.App

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_active ()

get_aliases ()

get_common_id ()

get_daemon_type ()

get_desktop_file ()

get_enabled ()

get_name ()

get_snap ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

active

bool

r/w/co

True if active

aliases

[str]

r/w/co

App aliases

common-id

str

r/w/co

Common ID

daemon-type

Snapd.DaemonType

r/w/co

Daemon type

desktop-file

str

r/w/co

App desktop file path

enabled

bool

r/w/co

True if enabled

name

str

r/w/co

App name

snap

str

r/w/co

Snap name

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.App(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.AppClass

Snapd.App contains information about an app in a Snap.

Snaps can contain apps which is a single binary executable.

New in version 1.0.

get_active()
Returns:

True if active.

Return type:

bool

Get if this service is active.

New in version 1.25.

get_aliases()
Returns:

the alias names.

Return type:

[str]

Get the aliases for this app.

New in version 1.7.

Deprecated since version 1.25.

get_common_id()
Returns:

an ID or None.

Return type:

str or None

Get the common ID associated with this app.

New in version 1.41.

get_daemon_type()
Returns:

the daemon type or None.

Return type:

Snapd.DaemonType or None

Get the daemon type for this app.

New in version 1.9.

get_desktop_file()
Returns:

a path or None.

Return type:

str or None

Get the path to the desktop file for this app.

New in version 1.14.

get_enabled()
Returns:

True if enabled.

Return type:

bool

Get if this service is enabled.

New in version 1.25.

get_name()
Returns:

a name.

Return type:

str

Get the name of this app.

New in version 1.0.

get_snap()
Returns:

a snap name.

Return type:

str

Get the snap this app is associated with.

New in version 1.25.

Property Details

Snapd.App.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True if active

Snapd.App.props.aliases
Name:

aliases

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

App aliases

Snapd.App.props.common_id
Name:

common-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Common ID

Snapd.App.props.daemon_type
Name:

daemon-type

Type:

Snapd.DaemonType

Default Value:

Snapd.DaemonType.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Daemon type

Snapd.App.props.desktop_file
Name:

desktop-file

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

App desktop file path

Snapd.App.props.enabled
Name:

enabled

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True if enabled

Snapd.App.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

App name

Snapd.App.props.snap
Name:

snap

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snap name