Closed Agamenon-sama closed 9 months ago
OS version querying on Linux works by reading the property that starts with VERSION in the file /etc/os-release. My Ubuntu system however contains the following in that file
VERSION
/etc/os-release
VERSION_ID="23.04" VERSION="23.04 (Lunar Lobster)" VERSION_CODENAME=lunar
This causes the version number to be set to una which is the value of the last property that starts with VERSION minus the first and last character.
una
I also suggest applying a similar fix for all situations where we read from this file or a similar one to avoid future issues.
OS version querying on Linux works by reading the property that starts with
VERSION
in the file/etc/os-release
. My Ubuntu system however contains the following in that fileThis causes the version number to be set to
una
which is the value of the last property that starts withVERSION
minus the first and last character.I also suggest applying a similar fix for all situations where we read from this file or a similar one to avoid future issues.