Add minimal OS information from os-release(5)
This doesn't include information about similar OSs (ID_LIKE), and also
does not include a fallback to lsb_release or OS-specific files.
However, it's enough to detect Steam Runtime containers.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
403b9650
No related branches found
No related tags found
Showing
- bin/system-info.c 79 additions, 0 deletionsbin/system-info.c
- bin/system-info.md 93 additions, 0 deletionsbin/system-info.md
- steam-runtime-tools/meson.build 2 additions, 0 deletionssteam-runtime-tools/meson.build
- steam-runtime-tools/os-internal.h 48 additions, 0 deletionssteam-runtime-tools/os-internal.h
- steam-runtime-tools/os.c 227 additions, 0 deletionssteam-runtime-tools/os.c
- steam-runtime-tools/system-info.c 212 additions, 0 deletionssteam-runtime-tools/system-info.c
- steam-runtime-tools/system-info.h 9 additions, 0 deletionssteam-runtime-tools/system-info.h
- tests/meson.build 1 addition, 0 deletionstests/meson.build
- tests/sysroots/debian-unstable/etc/os-release 6 additions, 0 deletionstests/sysroots/debian-unstable/etc/os-release
- tests/sysroots/debian10/usr/lib/os-release 9 additions, 0 deletionstests/sysroots/debian10/usr/lib/os-release
- tests/sysroots/invalid-os-release/usr/lib/os-release 6 additions, 0 deletionstests/sysroots/invalid-os-release/usr/lib/os-release
- tests/sysroots/no-os-release/.gitignore 0 additions, 0 deletionstests/sysroots/no-os-release/.gitignore
- tests/sysroots/steamrt-unofficial/etc/os-release 1 addition, 0 deletionstests/sysroots/steamrt-unofficial/etc/os-release
- tests/sysroots/steamrt-unofficial/usr/lib/os-release 9 additions, 0 deletionstests/sysroots/steamrt-unofficial/usr/lib/os-release
- tests/sysroots/steamrt/etc/os-release 1 addition, 0 deletionstests/sysroots/steamrt/etc/os-release
- tests/sysroots/steamrt/usr/lib/os-release 9 additions, 0 deletionstests/sysroots/steamrt/usr/lib/os-release
- tests/system-info.c 338 additions, 0 deletionstests/system-info.c
Loading
Please register or sign in to comment