aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-05 12:02:45 +0300
committerIgor Soarez <igor@soarez.org>2026-10-05 12:02:45 +0300
commit2312d3978b7d123968e834c0e0080ad2ff5559df (patch)
treedf0cbc74a4756c61646f2fbe9b0d8be1aa8749bf
parent3d30f8f5eaf3d09a26a53706cd35770a06c5b87e (diff)
tmuxrdr: own directories, to run beside stock herdr
app_dir_name() names the directory every herdr path is built from -- config, sessions, sockets, logs, plugin registry, state. A release build of tmuxrdr now uses "tmuxrdr", so ~/.config/tmuxrdr and ~/.local/state/tmuxrdr, and shares nothing with a stock herdr on the same machine. Debug builds keep "herdr-dev", which herdr's own tests expect.
-rw-r--r--src/config/io.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config/io.rs b/src/config/io.rs
index 110d431e..0ec3290e 100644
--- a/src/config/io.rs
+++ b/src/config/io.rs
@@ -23,7 +23,10 @@ pub fn app_dir_name() -> &'static str {
if cfg!(debug_assertions) {
"herdr-dev"
} else {
- "herdr"
+ // tmuxrdr: its own config, state, sessions, sockets and plugins, so it
+ // runs beside stock herdr sharing none of them. Debug builds keep
+ // herdr-dev, which herdr's own tests expect.
+ "tmuxrdr"
}
}