[neon/forks/base-files/Neon/release] etc: encode the variant_id in os-release

Harald Sitter null at kde.org
Mon Mar 29 11:07:01 BST 2021


Git commit 47d62436ae92442e2fa8d29904b6bb61b125125b by Harald Sitter.
Committed on 29/03/2021 at 06:47.
Pushed by sitter into branch 'Neon/release'.

encode the variant_id in os-release

this allows us to programatically check the edition we run on.
i.e. since VARIANT is a user facing pretty string, VARIANT_ID is meant to
encode an easy to parse string that one can easily check in a program to
(e.g.) mutate behavior based on the variant one is on

M  +1    -0    etc/os-release

https://invent.kde.org/neon/forks/base-files/commit/47d62436ae92442e2fa8d29904b6bb61b125125b

diff --git a/etc/os-release b/etc/os-release
index 13de057..44611e8 100644
--- a/etc/os-release
+++ b/etc/os-release
@@ -4,6 +4,7 @@ ID=neon
 ID_LIKE="ubuntu debian"
 PRETTY_NAME="KDE neon Plasma LTS Edition 5.18"
 VARIANT="Plasma LTS Edition"
+VARIANT_ID=user-lts
 VERSION_ID="20.04"
 HOME_URL="https://neon.kde.org/"
 SUPPORT_URL="https://neon.kde.org/"



More information about the Neon-commits mailing list