rustdesk 2023-12-08 20:52:33 +08:00
parent 70e5bee519
commit 6003003228

View File

@ -902,7 +902,10 @@ pub fn get_sysinfo() -> serde_json::Value {
}); });
#[cfg(not(any(target_os = "android", target_os = "ios")))] #[cfg(not(any(target_os = "android", target_os = "ios")))]
{ {
out["username"] = json!(crate::platform::get_active_username()); let username = crate::platform::get_active_username();
if !username.is_empty() && (!cfg!(windows) || username != "SYSTEM") {
out["username"] = json!(username);
}
} }
out out
} }