Switch to XDG spec on macOS

Currently Pijul uses the Apple spec for data dirs to write its config, but as a cli/dev tool, that just make it extra annoying to work with:

  • there is a space in the the path, making it annoying to type in a shell
  • it’s not easy to maintain the config in a VCS with all my other configs
  • I can’t easily access it next to my other configs under XDG_CONFIG_HOME

I know the fault lies with the dirs2 crate, which refuses to take this use case in consideration for macOS because « Apple said so, Apple is right », but could pijul change before 1.0.0 is released or at least support both on macOS ?

1 Like