Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: exclude openclaw from changing location data
Vanalite37b279ddde9c
diff --git a/src-tauri/src/core/app/commands.rs b/src-tauri/src/core/app/commands.rsindex ee46e3ec8..257f77621 100644--- a/src-tauri/src/core/app/commands.rs+++ b/src-tauri/src/core/app/commands.rs@@ -253,7 +253,7 @@ pub fn change_app_data_folder<R: Runtime>(copy_dir_recursive(¤t_data_folder,&new_data_folder_path,- &[".uvx", ".npx", "openclaw/runtime", "openclaw/bunx"],+ &[".uvx", ".npx", "openclaw"],).map_err(|e| format!("Failed to copy data to new folder: {e}"))?;} else {diff --git a/src-tauri/src/core/app/helpers.rs b/src-tauri/src/core/app/helpers.rsindex 66b9ac693..6715e73cb 100644--- a/src-tauri/src/core/app/helpers.rs+++ b/src-tauri/src/core/app/helpers.rs@@ -24,10 +24,8 @@ pub fn copy_dir_recursive(}}copy_dir_recursive(&src_path, &dst_path, exclude_dirs)?;- } else if file_type.is_file() || file_type.is_symlink() {- fs::copy(&src_path, &dst_path)?;} else {- log::debug!("Skipping non-regular file: {src_path:?}");+ fs::copy(&src_path, &dst_path)?;}}