From 4cab6ca334e49941ff75e975ecb88186d210bb9c Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:23:30 +0100 Subject: [PATCH] Use the standard os-release instead of redox specific redox-release This allows programs not specifically written for Redox OS to discover information about the OS it is running on. --- config/base.toml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/config/base.toml b/config/base.toml index bb4e06b..b19f70d 100644 --- a/config/base.toml +++ b/config/base.toml @@ -36,6 +36,28 @@ data = """ redox """ +# https://www.freedesktop.org/software/systemd/man/latest/os-release.html +[[files]] +path = "/usr/lib/os-release" +data = """ +PRETTY_NAME = "Redox OS 0.8.0" +NAME = "Redox OS" +VERSION_ID="0.8.0" +VERSION="0.8.0" +ID="redox-os" + +HOME_URL="https://redox-os.org/" +DOCUMENTATION_URL="https://redox-os.org/docs/" +SUPPORT_URL="https://redox-os.org/community/" +""" +# FIXME maybe add VARIANT= and VARIANT_ID= keys depending on the chosen configuration? + +[[files]] +path = "/etc/os-release" +data = "../usr/lib/os-release" +symlink = true + +# FIXME remove once screenfetch supports reading os-release instead [[files]] path = "/etc/redox-release" data = "0.8.0"