manifold-cli icon indicating copy to clipboard operation
manifold-cli copied to clipboard

Respect the XDG Base Directory Specification

Open dsifford opened this issue 7 years ago • 3 comments

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!

dsifford avatar Jul 24 '18 23:07 dsifford

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.

enmand avatar Jul 25 '18 17:07 enmand

@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.

louisbranch avatar Jul 27 '18 13:07 louisbranch

Thanks for working on this @luizbranco!

I'll add my thoughts to the PR thread.

dsifford avatar Jul 27 '18 16:07 dsifford