Respect the XDG Base Directory Specification
Hi there,
Long time torus user just getting merged over into manifold. Great service you all have provided.
One little gripe that I've had with torus and that I now have with manifold is that you guys and gals are not respecting the XDG Base Directory specification.
Specifically, ~/.manifoldrc and ~/.manifold/ are being created in the home directory irrespective of the presence of both $MANIFOLD_DIR and $XDG_CONFIG_HOME.
Because you guys are still relatively new, I think it would behoove you all to consider supporting the XDG specification from the get-go, being that it'll almost certainly be more difficult to add in later on once the service progresses further.
Information about the spec can be found here (official spec) and here (easier read).
Thanks in advance!
Hi!
Thanks for the suggestion. I've created a ticket internally to check this out.
As a bit of a workaround, you can use the HOME environment variable to specify a directory to use to search the for the .manifoldrc file.
@dsifford can you take a look on the referenced PR?
This is a partial solution that doesn't address the ~/.manifold/bin part. AFAIK there is no xdg dir for binaries, the closest would be data, but it would make more sense to be ~/.local/bin instead of share.
Thanks for working on this @luizbranco!
I'll add my thoughts to the PR thread.