Flags¶
Details¶
- class AppStreamGlib.AppParseFlags(value)¶
Bases:
GLib.Flags
The flags to use when parsing resources.
- NONE = 0¶
No special actions to use
- USE_HEURISTICS = 1¶
Use heuristic to infer properties
- ONLY_NATIVE_LANGS = 128¶
Only load native languages
- ALLOW_VETO = 16¶
Do not return errors for vetoed apps
- KEEP_COMMENTS = 2¶
Save comments from the file
- USE_FALLBACKS = 32¶
Fall back to suboptimal data where required
- CONVERT_TRANSLATABLE = 4¶
Allow translatable flags like <_p>
- ADD_ALL_METADATA = 64¶
Add all extra metadata from the source file
- APPEND_DATA = 8¶
Append new data rather than replacing
- class AppStreamGlib.AppQuirk(value)¶
Bases:
GLib.Flags
The component attributes.
- NONE = 0¶
No special attributes
- PROVENANCE = 1¶
Installed by OS vendor
- REMOVABLE_HARDWARE = 1024¶
The device is unusable whilst the action is performed
- NOT_LAUNCHABLE = 128¶
The app is not launchable (run-able)
- NEEDS_REBOOT = 16¶
A reboot is required after the action
- COMPULSORY = 2¶
Cannot be removed
- DEVELOPER_VERIFIED = 2048¶
The app developer has been verified
- NEEDS_USER_ACTION = 256¶
The component requires some kind of user action
- NOT_REVIEWABLE = 32¶
The app is not reviewable
- HAS_SOURCE = 4¶
Has a source to allow staying up-to-date
- IS_PROXY = 512¶
Is a proxy app that operates on other applications
- HAS_SHORTCUT = 64¶
The app has a shortcut in the system
- MATCH_ANY_PREFIX = 8¶
Matches applications with any prefix
- class AppStreamGlib.AppSearchMatch(value)¶
Bases:
GLib.Flags
The token match kind, which we want to be exactly 16 bits for storage reasons.
- NONE = 0¶
No token matching
- MIMETYPE = 1¶
Use the app mimetypes
- ORIGIN = 128¶
Use the app origin
- NAME = 16¶
Use the app name
- PKGNAME = 2¶
Use the app package name
- KEYWORD = 32¶
Use the app keyword
- DESCRIPTION = 4¶
Use the app description
- ID = 64¶
Use the app application ID
- COMMENT = 8¶
Use the app comment
- class AppStreamGlib.AppSubsumeFlags(value)¶
Bases:
GLib.Flags
The flags to use when subsuming applications.
- METADATA_LICENSE = -2147483648¶
Copy the metadata license
- AGREEMENTS = 0¶
Copy the agreements
- LAUNCHABLES = 0¶
Copy the launchables
- NONE = 0¶
No special actions to use
- PROJECT_GROUP = 0¶
Copy the project group
- PROJECT_LICENSE = 0¶
Copy the project license
- SOURCE_KIND = 0¶
Copy the source kind
- SUGGESTS = 0¶
- NO_OVERWRITE = 1¶
Do not overwrite already set properties
- PERMISSIONS = 1024¶
Copy the permissions
- LANGUAGES = 1048576¶
Copy the languages
- ORIGIN = 1073741824¶
Copy the origin
- RELEASES = 128¶
Copy the releases
- ICONS = 131072¶
Copy the icons
- KEYWORDS = 134217728¶
Copy the keywords
- STATE = 16¶
Copy the state
- REVIEWS = 16384¶
Copy the reviews
- DESCRIPTION = 16777216¶
Copy the description
- BOTH_WAYS = 2¶
Copy unset properties both ways
- EXTENDS = 2048¶
Copy the extends
- NAME = 2097152¶
Copy the name
- KUDOS = 256¶
Copy the kudos
- MIMETYPES = 262144¶
Copy the mimetypes
- FORMATS = 268435456¶
Copy the source file
- BUNDLES = 32¶
Copy the bundles
- CONTENT_RATINGS = 32768¶
Copy the content ratings
- METADATA = 33554432¶
Copy the metadata
- REPLACE = 4¶
- COMPULSORY = 4096¶
Copy the compulsory-for-desktop
- COMMENT = 4194304¶
Copy the comment
- CATEGORIES = 512¶
Copy the categories
- VETOS = 524288¶
Copy the vetos
- BRANCH = 536870912¶
Copy the branch
- TRANSLATIONS = 64¶
Copy the translations
- PROVIDES = 65536¶
Copy the provides
- URL = 67108864¶
Copy the urls
- KIND = 8¶
Copy the kind
- SCREENSHOTS = 8192¶
Copy the screenshots
- DEVELOPER_NAME = 8388608¶
Copy the developer name
- class AppStreamGlib.InfLoadFlags(value)¶
Bases:
GLib.Flags
The flags used when loading INF files.
- NONE = 0¶
No flags set
- STRICT = 1¶
Be strict when loading the file
- CASE_INSENSITIVE = 2¶
Load keys and groups case insensitive
- class AppStreamGlib.MarkupConvertFlag(value)¶
Bases:
GLib.Flags
The flags used when converting descriptions from AppStream-style.
- NONE = 0¶
No flags set
- IGNORE_ERRORS = 1¶
Ignore errors where possible
- class AppStreamGlib.NodeFromXmlFlags(value)¶
Bases:
GLib.Flags
The flags for converting from XML.
- NONE = 0¶
No extra flags to use
- LITERAL_TEXT = 1¶
Treat the text as an exact string
- KEEP_COMMENTS = 2¶
Retain comments in the XML file
- ONLY_NATIVE_LANGS = 4¶
Only load native languages
- class AppStreamGlib.ReviewFlags(value)¶
Bases:
GLib.Flags
The flags for the review.
New in version 0.6.1.
- NONE = 0¶
No special flags set
- SELF = 1¶
The user wrote the review themselves
- VOTED = 2¶
The user voted on the review
- class AppStreamGlib.StoreAddFlags(value)¶
Bases:
GLib.Flags
The flags to use when adding applications to the store.
- NONE = 0¶
No extra flags to use
- PREFER_LOCAL = 1¶
Local files will be used by default
- USE_UNIQUE_ID = 2¶
Allow multiple apps with the same AppStream ID
- USE_MERGE_HEURISTIC = 4¶
Use a heuristic when adding merge components
- ONLY_NATIVE_LANGS = 8¶
Only load native languages
- class AppStreamGlib.StoreLoadFlags(value)¶
Bases:
GLib.Flags
The flags to use when loading the store.
- NONE = 0¶
No extra flags to use
- APP_INFO_SYSTEM = 1¶
The system app-info AppStream data
- ONLY_MERGE_APPS = 1024¶
Ignore non-wildcard matches
- FLATPAK_SYSTEM = 128¶
Add flatpak system applications (obsolete)
- DESKTOP = 16¶
The installed desktop files
- APP_INFO_USER = 2¶
The per-user app-info AppStream data
- IGNORE_INVALID = 256¶
Ignore invalid files
- ALLOW_VETO = 32¶
Add vetoed applications
- APP_INSTALL = 4¶
The ubuntu-specific app-install data (obsolete)
- ONLY_UNCOMPRESSED = 512¶
Ignore compressed files
- FLATPAK_USER = 64¶
Add flatpak user applications (obsolete)
- APPDATA = 8¶
The installed AppData files
- class AppStreamGlib.UniqueIdMatchFlags(value)¶
Bases:
GLib.Flags
The flags used when matching unique IDs.
- NONE = 0¶
No flags set
- SCOPE = 1¶
Scope, e.g. a
AppStreamGlib.AppScope
- ID = 16¶
Component AppStream ID
- BUNDLE_KIND = 2¶
Bundle kind, e.g. a
AppStreamGlib.BundleKind
- BRANCH = 32¶
Branch
- ORIGIN = 4¶
Origin
- KIND = 8¶
Component kind, e.g. a
AppStreamGlib.AppKind
- class AppStreamGlib.UtilsFindIconFlag(value)¶
Bases:
GLib.Flags
The flags used when finding icons.
- NONE = 0¶
No flags set
- HI_DPI = 1¶
Prefer a HiDPI icon
- class AppStreamGlib.VersionCompareFlag(value)¶
Bases:
GLib.Flags
The flags used when comparing version numbers.
- NONE = 0¶
No flags set
- USE_HEURISTICS = 1¶
Use a heuristic to parse version numbers
- class AppStreamGlib.VersionParseFlag(value)¶
Bases:
GLib.Flags
The flags used when parsing version numbers.
- NONE = 0¶
No flags set
- USE_TRIPLET = 1¶
Use Microsoft-style version numbers
- USE_BCD = 2¶
Use binary coded decimal notation