Snapd.Alias

g GObject.Object GObject.Object Snapd.Alias Snapd.Alias GObject.Object->Snapd.Alias

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_app ()

get_app_auto ()

get_app_manual ()

get_command ()

get_name ()

get_snap ()

get_status ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

app-auto

str

r/w/co

App this alias is for (when status is Snapd.AliasStatus.AUTO)

app-manual

str

r/w/co

App this alias is for (when status is Snapd.AliasStatus.MANUAL)

command

str

r/w/co

Command this alias runs

name

str

r/w/co

Name of alias

snap

str

r/w/co

Snap this alias is for

status

Snapd.AliasStatus

r/w/co

Alias status

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Alias(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.AliasClass

Snapd.Alias contains alias information for a Snap.

Aliases are used to provide alternative binary names for Snap apps.

New in version 1.8.

get_app()
Returns:

an app name or None.

Return type:

str or None

Get the app this is an alias for.

New in version 1.8.

Deprecated since version 1.25: Use Snapd.Alias.get_app_manual() or Snapd.Alias.get_app_auto().

get_app_auto()
Returns:

an app name or None.

Return type:

str or None

Get the app this alias has been automatically set to (status is Snapd.AliasStatus.AUTO). Can be overridden when status is Snapd.AliasStatus.MANUAL.

New in version 1.25.

get_app_manual()
Returns:

an app name or None.

Return type:

str or None

Get the app this alias has been manually set to (status is Snapd.AliasStatus.MANUAL). This overrides the app from Snapd.Alias.get_app_auto().

New in version 1.25.

get_command()
Returns:

a command.

Return type:

str

Get the command this alias runs.

New in version 1.25.

get_name()
Returns:

an alias name.

Return type:

str

Get the name of this alias.

New in version 1.8.

get_snap()
Returns:

a snap name.

Return type:

str

Get the snap this alias is for.

New in version 1.8.

get_status()
Returns:

a Snapd.AliasStatus.

Return type:

Snapd.AliasStatus

Get the status of this alias.

New in version 1.8.

Property Details

Snapd.Alias.props.app_auto
Name:

app-auto

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

App this alias is for (when status is Snapd.AliasStatus.AUTO)

Snapd.Alias.props.app_manual
Name:

app-manual

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

App this alias is for (when status is Snapd.AliasStatus.MANUAL)

Snapd.Alias.props.command
Name:

command

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Command this alias runs

Snapd.Alias.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Name of alias

Snapd.Alias.props.snap
Name:

snap

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snap this alias is for

Snapd.Alias.props.status
Name:

status

Type:

Snapd.AliasStatus

Default Value:

Snapd.AliasStatus.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Alias status