From 9856ca0f38a2e16baccc456c07c4f21175c092af Mon Sep 17 00:00:00 2001 From: Brook J Date: Fri, 24 May 2024 21:57:06 +1000 Subject: [PATCH] `get_xdg_config_home_dir()` now falls back to $HOME/.config if XDG_CONFIG_HOME it is not explicitly set in the environment. --- src/config.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.zig b/src/config.zig index ef6362f..ef97527 100644 --- a/src/config.zig +++ b/src/config.zig @@ -22,7 +22,7 @@ const Config = struct { } else { if (try environment.get_home_dir()) |path| { config_home = path; - config_path = try std.fs.path.join(alloc, &.{ ".zfe", "config.json" }); + config_path = try std.fs.path.join(alloc, &.{ ".config", "zfe", "config.json" }); } else { return error.MissingConfigHomeEnvironmentVariable; }