Skip to main content

os_name

Function os_name 

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

Get a line of text describing the OS without version information, suitable for presentation to the user. e.g. “Ubuntu”

§Returns

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