Flags

Details

class AppStreamCompose.ComposeFlags(value)

Bases: GObject.GFlags

Flags that affect the compose process.

Added in version 0.14.5.

NONE = 0

No flags.

USE_THREADS = 1

Process units in parallel. Ignored if an AppStreamCompose.Media was set via AppStreamCompose.Compose.set_media().

PROPAGATE_ARTIFACTS = 1024

Whether artifact data should be passed through to the generated output.

IGNORE_ICONS = 128

Any icon information is completely ignored. Useful for later manual icon processing.

ALLOW_VIDEOS = 16

Handle & store video screenshots (they will be removed without this flag)

ALLOW_NET = 2

Allow network access for downloading extra data.

NO_FINAL_CHECK = 2048

Disable the automatic finalization check to perform it manually at a later time.

PROCESS_UNPAIRED_DESKTOP = 256

Process desktop-entry files that do not have a corresponding metainfo file.

PROCESS_FONTS = 32

Set if font components should be processed.

VALIDATE = 4

Validate metadata while processing.

NO_PARTIAL_URLS = 4096

Do not use media_baseurl and always embed complete URLs in generated metadata.

PROPAGATE_CUSTOM = 512

Whether all custom entries should be passed on to the output, ignoring the allowlist.

PROCESS_TRANSLATIONS = 64

Automatically extract component translation status.

STORE_SCREENSHOTS = 8

Whether screenshots should be cached in the media directory.

class AppStreamCompose.ImageSaveFlags(value)

Bases: GObject.GFlags

The flags used for saving images.

Added in version 0.14.0.

NONE = 0

No special flags set

LOSSLESS = 1

Encode the image losslessly

OPTIMIZE = 2

Optimize generated PNG for size

SHARPEN = 4

Sharpen the image to clarify detail