Skip to content

Commit

Permalink
get_xdg_config_home_dir() now falls back to $HOME/.config if XDG_CO…
Browse files Browse the repository at this point in the history
…NFIG_HOME it is not explicitly set in the environment.
  • Loading branch information
BrookJeynes committed May 24, 2024
1 parent 274a0e0 commit 9856ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9856ca0

Please sign in to comment.