From 5ed262a43ac7f264a1a7523b6d4507ba4a976604 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 3 Apr 2026 17:11:20 +0300 Subject: fix: isolate debug runtime paths and block duplicate herdr instances --- src/persist.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/persist.rs') diff --git a/src/persist.rs b/src/persist.rs index c296b0ac..fb8ab2d8 100644 --- a/src/persist.rs +++ b/src/persist.rs @@ -467,13 +467,7 @@ fn collect_ids_inner(node: &Node, ids: &mut Vec) { // --- File I/O --- fn session_path() -> PathBuf { - if let Ok(dir) = std::env::var("XDG_CONFIG_HOME") { - PathBuf::from(dir).join("herdr/session.json") - } else if let Ok(home) = std::env::var("HOME") { - PathBuf::from(home).join(".config/herdr/session.json") - } else { - PathBuf::from("/tmp/herdr/session.json") - } + crate::config::config_dir().join("session.json") } pub fn save(snapshot: &SessionSnapshot) { -- cgit v1.2.3