Skip to main content

os_version

Function os_version 

Source
pub fn os_version() -> Option<GString>
Expand description

Get a line of text describing the OS version, suitable for presentation to the user. e.g. “16.04.1 LTS (Xenial Xapus)”

§Returns

a string (VERSION variable from /etc/os-release) or None if not set.