stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
175 stars 52 forks source link

Collect official OS name / description #357

Open ydirson opened 12 months ago

ydirson commented 12 months ago

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:

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