fix: 配置文件目录从 %APPDATA% 改为 %USERPROFILE%/.patheditor/profiles

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 21:20:38 +08:00
parent d7d11480b8
commit 230fb5d741
+1 -2
View File
@@ -3,8 +3,7 @@ use std::fs;
use std::path::PathBuf; use std::path::PathBuf;
fn profiles_dir() -> PathBuf { fn profiles_dir() -> PathBuf {
dirs::data_dir() dirs::home_dir()
.or_else(dirs::home_dir)
.unwrap_or_else(|| PathBuf::from(".")) .unwrap_or_else(|| PathBuf::from("."))
.join(".patheditor") .join(".patheditor")
.join("profiles") .join("profiles")