From 7977f2dae409538300c299a7bb573e8832e2563c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 8 Jan 2026 02:17:28 +0800 Subject: Use different config directory name on non-Linux systems --- crates/vcs_data/src/current.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/vcs_data/src/current.rs b/crates/vcs_data/src/current.rs index 0a225d2..209c0cc 100644 --- a/crates/vcs_data/src/current.rs +++ b/crates/vcs_data/src/current.rs @@ -72,7 +72,13 @@ pub fn find_local_path(path: impl Into) -> Option { None } -/// Get the system's document directory and join with jvcs +/// Get the system's document directory and join with the appropriate application name pub fn current_cfg_dir() -> Option { - dirs::config_local_dir().map(|path| path.join("jvcs")) + dirs::config_local_dir().map(|path| { + if cfg!(target_os = "linux") { + path.join("jvcs") + } else { + path.join("JustEnoughVCS") + } + }) } -- cgit