diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 5bedbad29..b4d8eaff3 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -39,9 +39,16 @@ lazy_static::lazy_static! { pub static ref PROD_RENDEZVOUS_SERVER: Arc> = Default::default(); pub static ref APP_NAME: Arc> = Arc::new(RwLock::new("RustDesk".to_owned())); } -#[cfg(any(target_os = "android", target_os = "ios"))] +#[cfg(target_os = "android")] +lazy_static::lazy_static! { + pub static ref APP_DIR: Arc> = Arc::new(RwLock::new("/data/user/0/com.carriez.flutter_hbb/app_flutter".to_owned())); +} +#[cfg(target_os = "ios")] lazy_static::lazy_static! { pub static ref APP_DIR: Arc> = Default::default(); +} +#[cfg(any(target_os = "android", target_os = "ios"))] +lazy_static::lazy_static! { pub static ref APP_HOME_DIR: Arc> = Default::default(); } const CHARS: &'static [char] = &[ diff --git a/libs/scrap/src/common/quartz.rs b/libs/scrap/src/common/quartz.rs index b35b56b61..46ac1b56d 100644 --- a/libs/scrap/src/common/quartz.rs +++ b/libs/scrap/src/common/quartz.rs @@ -51,7 +51,7 @@ impl Capturer { self.inner.height() } - pub fn frame<'a>(&'a mut self, _timeout_ms: u32) -> io::Result> { + pub fn frame<'a>(&'a mut self, _timeout_ms: std::time::Duration) -> io::Result> { match self.frame.try_lock() { Ok(mut handle) => { let mut frame = None;