Enums

Details

class Flatpak.Error(value)

Bases: GObject.GEnum

Error codes for library functions.

classmethod quark()
Return type:int
ALREADY_INSTALLED = 0

App/runtime is already installed

NOT_INSTALLED = 1

App/runtime is not installed

INVALID_REF = 10

A ref could not be parsed.

New in version 1.0.3.

INVALID_DATA = 11

Invalid data.

New in version 1.0.3.

UNTRUSTED = 12

Missing GPG key or signature.

New in version 1.0.3.

SETUP_FAILED = 13

Sandbox setup failed.

New in version 1.0.3.

EXPORT_FAILED = 14

Exporting data failed.

New in version 1.0.3.

REMOTE_USED = 15

Remote can’t be uninstalled.

New in version 1.0.3.

RUNTIME_USED = 16

Runtime can’t be uninstalled.

New in version 1.0.3.

INVALID_NAME = 17

Application, runtime or remote name is invalid.

New in version 1.0.3.

OUT_OF_SPACE = 18

More disk space needed.

New in version 1.2.0.

WRONG_USER = 19

An operation is being attempted by the wrong user (such as root operating on a user installation).

New in version 1.2.0.

ONLY_PULLED = 2

App/runtime was only pulled into the local repository but not installed.

NOT_CACHED = 20

Cached data was requested, but it was not available.

New in version 1.4.0.

REF_NOT_FOUND = 21

The specified ref was not found.

New in version 1.4.0.

PERMISSION_DENIED = 22

An operation was not allowed by the administrative policy. For example, an app is not allowed to be installed due to not complying with the parental controls policy.

New in version 1.5.1.

AUTHENTICATION_FAILED = 23

An authentication operation failed, for example, no correct password was supplied.

New in version 1.7.3.

NOT_AUTHORIZED = 24

An operation tried to access a ref, or information about it that it was not authorized. For example, when succesfully authenticating with a server but the user doesn’t have permissions for a private ref.

New in version 1.7.3.

DIFFERENT_REMOTE = 3

The App/Runtime is already installed, but from a different remote.

ABORTED = 4

The transaction was aborted (returned True in operation-error signal).

SKIPPED = 5

The App/Runtime install was skipped due to earlier errors.

NEED_NEW_FLATPAK = 6

The App/Runtime needs a more recent version of flatpak.

REMOTE_NOT_FOUND = 7

The specified remote was not found.

RUNTIME_NOT_FOUND = 8

A runtime needed for the app was not found.

DOWNGRADE = 9

The pulled commit is a downgrade, and a downgrade wasn’t specifically allowed.

New in version 1.0.

class Flatpak.PortalError(value)

Bases: GObject.GEnum

Error codes returned by portal calls.

classmethod quark()
Return type:int
FAILED = 0

General portal failure

INVALID_ARGUMENT = 1

An argument was invalid

NOT_FOUND = 2

The object was not found

EXISTS = 3

The object already exists

NOT_ALLOWED = 4

The call was not allowed

CANCELLED = 5

The call was cancelled by the user

WINDOW_DESTROYED = 6

The window was destroyed by the user

class Flatpak.RefKind(value)

Bases: GObject.GEnum

The kind of artifact that a Flatpak.Ref refers to.

APP = 0

An application

RUNTIME = 1

A runtime that applications can use.

class Flatpak.RemoteType(value)

Bases: GObject.GEnum

Different types of FlatpakRemote.

STATIC = 0

Statically configured remote

USB = 1

Dynamically detected local pathname remote

LAN = 2

Dynamically detected network remote

class Flatpak.StorageType(value)

Bases: GObject.GEnum

Information about the storage of an installation.

New in version 0.6.15.

DEFAULT = 0

default

HARD_DISK = 1

installation is on a hard disk

SDCARD = 2

installation is on a SD card

MMC = 3

installation is on an MMC

NETWORK = 4

installation is on the network

class Flatpak.TransactionOperationType(value)

Bases: GObject.GEnum

The type of a Flatpak.TransactionOperation.

classmethod to_string(kind)
Parameters:kind (Flatpak.TransactionOperationType) – a Flatpak.TransactionOperationType
Returns:a string representing kind
Return type:str

Converts the operation type to a string.

INSTALL = 0

Install a ref from a remote

UPDATE = 1

Update an installed ref

INSTALL_BUNDLE = 2

Install a bundle from a file

UNINSTALL = 3

Uninstall a ref

LAST_TYPE = 4

The (currently) last operation type

class Flatpak.TransactionRemoteReason(value)

Bases: GObject.GEnum

The reason for Flatpak.Transaction ::add-new-remote.

GENERIC_REPO = 0

The remote specified in the flatpakref has other apps too

RUNTIME_DEPS = 1

The remote has runtimes needed for the app