Top | ![]() |
![]() |
![]() |
![]() |
gchar * | flatpak-version | Read / Write / Construct Only |
gchar * | host-directory | Read / Write / Construct Only |
SrtContainerType | type | Read / Write / Construct Only |
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]
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.
“flatpak-version”
property“flatpak-version” gchar *
Which Flatpak version, if any, is in use.
Flags: Read / Write / Construct Only
Default value: NULL
“host-directory”
property“host-directory” gchar *
Absolute path where important files from the host system can be found.
Flags: Read / Write / Construct Only
Default value: NULL
“type”
property“type” SrtContainerType
Which container type is currently in use.
Flags: Read / Write / Construct Only
Default value: SRT_CONTAINER_TYPE_UNKNOWN