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.
This commit is contained in:
bjorn3 2024-01-06 18:23:30 +01:00
parent f04bb44e55
commit 4cab6ca334

View file

@ -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"