Skip to main content

os_id

Function os_id 

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

Get a word describing the OS, suitable for checking which OS the greeter is running on. e.g. “ubuntu”

§Returns

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