mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-07 07:11:28 +03:00
Fix for #4136 connection to linux refused by using wrong Xauthority file.
This PR handles comments of review for PR #4165.
This commit is contained in:
@@ -328,13 +328,12 @@ fn patch(path: PathBuf) -> PathBuf {
|
||||
.to_string()
|
||||
.trim()
|
||||
.to_owned();
|
||||
if home_dir.is_empty() {
|
||||
return format!("/home/{user}").into();
|
||||
} else {
|
||||
if !home_dir.is_empty() {
|
||||
log::info!("config::patch: got home dir from: {}", home_dir);
|
||||
return home_dir.into();
|
||||
}
|
||||
}
|
||||
return format!("/home/{user}").into();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user