pub fn get_username() -> Option { let uid = nix::unistd::getuid(); nix::unistd::User::from_uid(uid) .ok() .flatten() .map(|user| user.name) }