From 230fb5d741d34779060fcd0a49d2ce3e78c885e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=88=AA=E5=AE=87?= <3364451258@qq.com> Date: Thu, 28 May 2026 21:20:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=BB=8E=20%APPDATA%=20=E6=94=B9=E4=B8=BA=20?= =?UTF-8?q?%USERPROFILE%/.patheditor/profiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- src-tauri/src/commands/profiles.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-tauri/src/commands/profiles.rs b/src-tauri/src/commands/profiles.rs index 5562dba..e9591ed 100644 --- a/src-tauri/src/commands/profiles.rs +++ b/src-tauri/src/commands/profiles.rs @@ -3,8 +3,7 @@ use std::fs; use std::path::PathBuf; fn profiles_dir() -> PathBuf { - dirs::data_dir() - .or_else(dirs::home_dir) + dirs::home_dir() .unwrap_or_else(|| PathBuf::from(".")) .join(".patheditor") .join("profiles")