Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix https://github.com/rustdesk/rustdesk-server-pro/issues/334

rustdeskfd9b5f3c57cb
diff --git a/src/client.rs b/src/client.rs
index 6fc8ce1a6..d6d8f8546 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -2110,6 +2110,13 @@ impl LoginConfigHandler {
(my_id, self.id.clone())
};
let mut display_name = get_buildin_option(config::keys::OPTION_DISPLAY_NAME);
+ if display_name.is_empty() {
+ display_name = serde_json::from_str::<HashMap<String, String>>(
+ &LocalConfig::get_option("user_info"),
+ )
+ .map(|mut x| x.remove("name").unwrap_or_default())
+ .unwrap_or_default();
+ }
if display_name.is_empty() {
display_name = crate::username();
}