stanislav-tkach / os_info

Rust library to detect the operating system type

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collect official OS name / description

ydirson opened this issue · comments

It is useful in some situations to get a "user-readable description" of the OS/version considered (in our case, to identify the OS running in a VM).

This information is available eg. in /etc/os-release as PRETTY_NAME, or from lsb_release as Description, and cannot be deduced from existing fields for various reasons, including:

  • every OS editor has its conventions
  • Version retrivial does not all today to access the official version string

It could default to a constructed string for OS not directly providing such information.