Snapd.Alias¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
App this alias is for (when status is   | 
||
r/w/co  | 
App this alias is for (when status is   | 
||
r/w/co  | 
Command this alias runs  | 
||
r/w/co  | 
Name of alias  | 
||
r/w/co  | 
Snap this alias is for  | 
||
r/w/co  | 
Alias status  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Snapd.Alias(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Snapd.Aliascontains alias information for a Snap.Aliases are used to provide alternative binary names for Snap apps.
New in version 1.8.
- get_app()¶
 - 
Get the app this is an alias for.
New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Alias.get_app_manual() orSnapd.Alias.get_app_auto(). 
- get_app_auto()¶
 - 
Get the app this alias has been automatically set to (status is
Snapd.AliasStatus.AUTO). Can be overridden when status isSnapd.AliasStatus.MANUAL.New in version 1.25.
 
- get_app_manual()¶
 - 
Get the app this alias has been manually set to (status is
Snapd.AliasStatus.MANUAL). This overrides the app fromSnapd.Alias.get_app_auto().New in version 1.25.
 
- get_command()¶
 - Returns:
 a command.
- Return type:
 
Get the command this alias runs.
New in version 1.25.
- get_name()¶
 - Returns:
 an alias name.
- Return type:
 
Get the name of this alias.
New in version 1.8.
- get_snap()¶
 - Returns:
 a snap name.
- Return type:
 
Get the snap this alias is for.
New in version 1.8.
- get_status()¶
 - Returns:
 - Return type:
 
Get the status of this alias.
New in version 1.8.
Property Details¶
- Snapd.Alias.props.app_auto¶
 - Name:
 app-auto- Type:
 - Default Value:
 - Flags:
 
App this alias is for (when status is
Snapd.AliasStatus.AUTO)
- Snapd.Alias.props.app_manual¶
 - Name:
 app-manual- Type:
 - Default Value:
 - Flags:
 
App this alias is for (when status is
Snapd.AliasStatus.MANUAL)
- Snapd.Alias.props.command¶
 - Name:
 command- Type:
 - Default Value:
 - Flags:
 
Command this alias runs
- Snapd.Alias.props.name¶
 - Name:
 name- Type:
 - Default Value:
 - Flags:
 
Name of alias
- Snapd.Alias.props.snap¶
 - Name:
 snap- Type:
 - Default Value:
 - Flags:
 
Snap this alias is for
- Snapd.Alias.props.status¶
 - Name:
 status- Type:
 - Default Value:
 - Flags:
 
Alias status