aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barton <28630076+paulbarton90@users.noreply.github.com>2025-08-23 00:27:30 +0100
committerGitHub <noreply@github.com>2025-08-23 00:27:30 +0100
commitd96450142edee081533d802626f311bd3c47d336 (patch)
tree82ad61c613328079e3d43232f89a1ec84a289681
parentchore(deps): bump actions/checkout from 4 to 5 (#2882) (diff)
downloadatuin-d96450142edee081533d802626f311bd3c47d336.zip
fix: expand path for daemon.socket_path (#2870)
This parses the daemon.socket_path config item to allow it to be set to something like `"${XDG_RUNTIME_DIR}/atuin.sock"`. Fixes https://github.com/atuinsh/atuin/issues/2490. <!-- Thank you for making a PR! Bug fixes are always welcome, but if you're adding a new feature or changing an existing one, we'd really appreciate if you open an issue, post on the forum, or drop in on Discord --> ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing
-rw-r--r--crates/atuin-client/src/settings.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs
index 87fe8d32..5c8000ba 100644
--- a/crates/atuin-client/src/settings.rs
+++ b/crates/atuin-client/src/settings.rs
@@ -874,6 +874,7 @@ impl Settings {
settings.record_store_path = Self::expand_path(settings.record_store_path)?;
settings.key_path = Self::expand_path(settings.key_path)?;
settings.session_path = Self::expand_path(settings.session_path)?;
+ settings.daemon.socket_path = Self::expand_path(settings.daemon.socket_path)?;
Ok(settings)
}