1 2 3 4 5 6 7
pub fn get_name() -> String { let name = whoami::realname(); if name.is_empty() { return whoami::username(); } name }