Class

AppStreamSystemInfo

Description

class AppStream.SystemInfo : GObject.Object
{
  /* No available fields */
}

No description available.

Hierarchy

hierarchy this AsSystemInfo ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

as_system_info_new

Creates a new AsSystemInfo.

since: 0.10

as_system_info_new_template_for_chassis

Creates a new AsSystemInfo that can be used as a mock system for the given chassis type, reading (mostly) no information from the current system.

since: 1.0.0

Instance methods

as_system_info_get_device_name_for_modalias

Return a human readable device name for the given modalias. Will return the modalias again if no device name could be found, and returns NULL on error. If allow_fallback is set to FALSE, this function will return NULL and error AS_SYSTEM_INFO_ERROR_NOT_FOUND in case no suitable description could be found.

as_system_info_get_display_length

Get the current display length for the given side kind. If the display size is unknown, this function will return 0.

as_system_info_get_gui_available

Check whether graphical applications can be displayed via X11 or Wayland.

as_system_info_get_kernel_name

Get the name of the current kernel, e.g. “Linux”.

as_system_info_get_kernel_version

Get the version of the current kernel, e.g. “6.2.0-2”.

as_system_info_get_memory_total

Get the current total amount of physical memory in MiB.

as_system_info_get_modaliases

Get a list of modaliases for all the hardware on this system that has them.

as_system_info_get_os_cid

Get the AppStream component ID of the current operating system.

as_system_info_get_os_homepage

Get the homepage URL of the current operating system.

as_system_info_get_os_id

Get the ID of the current operating system.

as_system_info_get_os_name

Get the humen-readable name of the current operating system.

as_system_info_get_os_version

Get the version string of the current operating system.

as_system_info_has_device_matching_modalias

Check if there is a device on this system that matches the given modalias glob.

as_system_info_has_input_control

Test if the current system has a specific user input control method. Returns AS_CHECK_RESULT_UNKNOWN if we could not test for an input control method, AS_CHECK_RESULT_ERROR on error and AS_CHECK_RESULT_FALSE if the control was not found.

as_system_info_modalias_to_syspath

Receive a path in /sys for the devices with the given modalias.

as_system_info_set_display_length

Set the current display length for the given side kind. The size needs to be in device-independent pixels, see the AppStream documentation for more information: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length.

as_system_info_set_gui_available

Set whether this system has a GUI / desktop environment available.

as_system_info_set_input_control

Explicitly mark a user input control as present or not present on this system.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AppStreamSystemInfoClass {
  GObjectClass parent_class;
  void (* _as_reserved1) (
void
  );
  void (* _as_reserved2) (
void
  );
  void (* _as_reserved3) (
void
  );
  void (* _as_reserved4) (
void
  );
  void (* _as_reserved5) (
void
  );
  void (* _as_reserved6) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

_as_reserved1: void (* _as_reserved1) ( void )

No description available.

_as_reserved2: void (* _as_reserved2) ( void )

No description available.

_as_reserved3: void (* _as_reserved3) ( void )

No description available.

_as_reserved4: void (* _as_reserved4) ( void )

No description available.

_as_reserved5: void (* _as_reserved5) ( void )

No description available.

_as_reserved6: void (* _as_reserved6) ( void )

No description available.