AppStream.SystemInfo
Description: Reference for AppStream.SystemInfo

### Class

# AppStreamSystemInfo

since: 1.0

#### Description

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

No description available.

Available since: 1.0

#### Hierarchy

None

#### Ancestors

- GObject

#### 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.

since: 1.0

###### 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.

since: 1.0

###### as_system_info_get_gui_available

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

since: 1.0

###### as_system_info_get_kernel_name

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

since: 1.0

###### as_system_info_get_kernel_version

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

since: 1.0

###### as_system_info_get_memory_total

Get the current total amount of physical memory in MiB.

since: 1.0

###### as_system_info_get_modaliases

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

since: 1.0

###### as_system_info_get_os_cid

Get the AppStream component ID of the current operating system.

since: 1.0

###### as_system_info_get_os_homepage

Get the homepage URL of the current operating system.

since: 1.0

###### as_system_info_get_os_id

Get the ID of the current operating system.

since: 1.0

###### as_system_info_get_os_name

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

since: 1.0

###### as_system_info_get_os_version

Get the version string of the current operating system.

since: 1.0

###### as_system_info_has_device_matching_modalias

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

since: 1.0

###### 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.

since: 1.0

###### as_system_info_modalias_to_syspath

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

since: 1.0

###### 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://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length.

since: 1.0

###### as_system_info_set_gui_available

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

since: 1.0

###### as_system_info_set_input_control

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

since: 1.0

##### 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.

unstable since: 2.0

#### 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.