diff --git a/espanso-path/src/lib.rs b/espanso-path/src/lib.rs index dc2991f..6f16841 100644 --- a/espanso-path/src/lib.rs +++ b/espanso-path/src/lib.rs @@ -28,6 +28,8 @@ pub struct Paths { pub config: PathBuf, pub runtime: PathBuf, pub packages: PathBuf, + + pub is_portable_mode: bool, } pub fn resolve_paths( @@ -75,10 +77,13 @@ pub fn resolve_paths( packages_dir }; + let is_portable_mode = is_portable_mode() && force_config_dir.is_none() && force_runtime_dir.is_none(); + Paths { config: config_dir, runtime: runtime_dir, packages: packages_dir, + is_portable_mode, } }