Top | ![]() |
![]() |
![]() |
![]() |
SrtContainerType | srt_container_info_get_container_type () |
const gchar * | srt_container_info_get_container_host_directory () |
SrtOsInfo * | srt_container_info_get_container_host_os_info () |
SrtBwrapIssues | srt_container_info_get_bwrap_issues () |
const char * | srt_container_info_get_bwrap_messages () |
const char * | srt_container_info_get_bwrap_path () |
SrtFlatpakIssues | srt_container_info_get_flatpak_issues () |
const gchar * | srt_container_info_get_flatpak_version () |
SrtBwrapIssues | bwrap-issues | Read / Write / Construct Only |
char * | bwrap-messages | Read / Write / Construct Only |
char * | bwrap-path | Read / Write / Construct Only |
SrtFlatpakIssues | flatpak-issues | Read / Write / Construct Only |
char * | flatpak-version | Read / Write / Construct Only |
char * | host-directory | Read / Write / Construct Only |
SrtOsInfo * | host-os-info | Read / Write / Construct Only |
SrtContainerType | type | Read / Write / Construct Only |
GEnum ╰── SrtContainerType GFlags ╰── SrtFlatpakIssues GObject ╰── SrtContainerInfo
SrtContainerType
srt_container_info_get_container_type (SrtContainerInfo *self
);
If the program appears to be running in a container, return what sort of container it is.
Implementation of srt_system_info_get_container_type()
.
A recognised container type, or SRT_CONTAINER_TYPE_NONE
if a container cannot be detected, or SRT_CONTAINER_TYPE_UNKNOWN
if unsure.
const gchar *
srt_container_info_get_container_host_directory
(SrtContainerInfo *self
);
If the program appears to be running in a container, return the
directory where host files can be found. For example, if this function
returns /run/host
, it might be possible to load the host system's
/usr/lib/os-release
by reading /run/host/usr/lib/os-release
.
The returned directory is usually not complete. For example,
in a Flatpak app, /run/host
will sometimes contain the host system's
/etc
and /usr
, but only if suitable permissions flags are set.
Implementation of srt_system_info_dup_container_host_directory()
.
A path from which at least some
host-system files can be loaded, typically /run/host
, or NULL
if
unknown or unavailable.
[type filename][nullable]
SrtOsInfo *
srt_container_info_get_container_host_os_info
(SrtContainerInfo *self
);
If the program appears to be running in a container, return information about the host's operating system if possible.
Information about the host
operating system, or NULL
if unknown or unavailable.
[transfer none][nullable]
SrtBwrapIssues
srt_container_info_get_bwrap_issues (SrtContainerInfo *self
);
Return any Bubblewrap-specific issues that have been detected.
const char *
srt_container_info_get_bwrap_messages (SrtContainerInfo *self
);
Return unstructed diagnostic messages related to bwrap(1)
.
const char *
srt_container_info_get_bwrap_path (SrtContainerInfo *self
);
Return the path to bwrap(1)
.
SrtFlatpakIssues
srt_container_info_get_flatpak_issues (SrtContainerInfo *self
);
If the program appears to be running in a container type
SRT_CONTAINER_TYPE_FLATPAK
, return any Flatpak-specific issues detected.
Otherwise return SRT_FLATPAK_ISSUES_NONE
.
const gchar *
srt_container_info_get_flatpak_version
(SrtContainerInfo *self
);
If the program appears to be running in a container type
SRT_CONTAINER_TYPE_FLATPAK
, return the Flatpak version.
A filename, or NULL
if the container
type is not SRT_CONTAINER_TYPE_FLATPAK
or if it was not able to identify
the Flatpak version.
[type filename][nullable]
A type of container.
Flags describing problems with the Flatpak sandboxing framework and its ability to create new "sub-sandboxes" for the Steam Linux Runtime.
An internal error occurred while checking Flatpak sandbox capabilities, or an unknown issue flag was encountered in a JSON report, or no Flatpak container was detected |
||
The version of Flatpak is too old for full functionality. |
||
The diagnostic tool was unable to check for the ability to create a Flatpak subsandbox. |
||
The diagnostic tool was unable
to create a Flatpak subsandbox by using the equivalent of |
||
A timeout was encountered while trying to launch a Flatpak subsandbox. |
||
The ability
to create a Flatpak subsandbox was limited by a setuid |
||
The ability to create a Flatpak subsandbox was limited by misconfiguration of the D-Bus or systemd activation environment. |
||
The Flatpak subsandbox adds unwanted text on standard output. |
||
None of the above |
“bwrap-issues”
property “bwrap-issues” SrtBwrapIssues
Any Bubblewrap-related problems that have been detected.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: SRT_BWRAP_ISSUES_UNKNOWN
“bwrap-messages”
property “bwrap-messages” char *
Diagnostic messages generated by Bubblewrap.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: NULL
“bwrap-path”
property “bwrap-path” char *
Path to bwrap(1) executable.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: NULL
“flatpak-issues”
property“flatpak-issues” SrtFlatpakIssues
Any Flatpak-related problems that have been detected.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: SRT_FLATPAK_ISSUES_UNKNOWN
“flatpak-version”
property “flatpak-version” char *
Which Flatpak version, if any, is in use.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: NULL
“host-directory”
property “host-directory” char *
Absolute path where important files from the host system can be found.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: NULL
“host-os-info”
property “host-os-info” SrtOsInfo *
Information about the OS of the host-directory if available.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
“type”
property“type” SrtContainerType
Which container type is currently in use.
Owner: SrtContainerInfo
Flags: Read / Write / Construct Only
Default value: SRT_CONTAINER_TYPE_UNKNOWN