Skip to content

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

opt android get_home, bad code get corrent result

21pages1c9d139ff5e2
diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs
index 6f7bebdc0..6a154156b 100644
--- a/libs/hbb_common/src/config.rs
+++ b/libs/hbb_common/src/config.rs
@@ -569,7 +569,7 @@ impl Config {
pub fn get_home() -> PathBuf {
#[cfg(any(target_os = "android", target_os = "ios"))]
- return Self::path(APP_HOME_DIR.read().unwrap().as_str());
+ return PathBuf::from(APP_HOME_DIR.read().unwrap().as_str());
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
if let Some(path) = dirs_next::home_dir() {