mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 01:45:54 +08:00
fix: 配置文件目录从 %APPDATA% 改为 %USERPROFILE%/.patheditor/profiles
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user