-
- Downloads
Add support for ID_LIKE os-release(5) field
This one is a bit different because the raw field is a space-separated
list. For convenience, srt_system_info_dup_os_id_like() can be asked
to include the OS itself, for use in logic like this pseudocode:
for id in info.dup_os_id_like(True):
if id in special_cases:
special_cases[id].run()
break
else:
do_generic_behaviour()
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
dbd80ed2
No related branches found
No related tags found
Showing
- bin/system-info.c 16 additions, 0 deletionsbin/system-info.c
- bin/system-info.md 13 additions, 0 deletionsbin/system-info.md
- steam-runtime-tools/os-internal.h 1 addition, 0 deletionssteam-runtime-tools/os-internal.h
- steam-runtime-tools/os.c 11 additions, 0 deletionssteam-runtime-tools/os.c
- steam-runtime-tools/system-info.c 80 additions, 8 deletionssteam-runtime-tools/system-info.c
- steam-runtime-tools/system-info.h 2 additions, 0 deletionssteam-runtime-tools/system-info.h
- tests/system-info.c 74 additions, 0 deletionstests/system-info.c
Loading
Please register or sign in to comment