Skip to content

[BUG] Can't use $XDG_CONFIG_HOME on macOS #429

@iandol

Description

@iandol

Describe the bug

I set my $XDG_CONFIG_HOME to ~/.config on my macOS system, and symlinked bombadil.toml there. The docs mention $XDG_CONFIG_DIR so I also set that (though the XDG spec suggests it should be $XDG_CONFIG_DIRS, but whatever is set I get an error from bombadil (my shell is elvish, though I get the same error in zsh):

ε ◎ put $E:XDG_CONFIG_DIR $E:XDG_CONFIG_HOME
▶ /Users/ian/.config/
▶ /Users/ian/.config
                                                                                                                                                      
ε ➪ bombadil get path
Unable to find bombadil settings file /Users/ian/Library/Application Support/bombadil.toml
Exception: bombadil exited with 1

I'd prefer not to hae this hard-coded but follow the XDG variables.

To Reproduce

  1. symlink to the default ~/.config XDG config directory on macOS with the $XDG_CONFIG_HOME var set.

Expected behavior

Find bombadil.toml in ~/.config/bombadil.toml (maybe on macOS you can search either location), but if $XDG_CONFIG_HOME is specified always use that.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions