> Darcs seems to store a cache in ~/.darcs/cache . Please consider
moving this to a darcs subdirectory in the common ~/.cache directory.
Slight correction to this: darcs should use $XDG_CACHE_HOME if set, and
fall back to ~/.cache if not. See the XDG Base Directory Specification
for more details:
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
> I'd like somebody to go out and hunt down similar conventions for Mac
and Windows too first.
On Windows, I think you want to use a subdirectory of the directory
returned from GetTempPath(). That path has similar semantics: many
cleanup utilities and backup utilities know about it.
On OS X, I think you want a subdirectory of ~/Library/Caches. I don't
know if some standard function exists to obtain that path, or if you
should just hardcode it. (Note that applications in an application
bundle normally use a cache directory inside their application instead,
but I'd guess that doesn't apply to a command-line tool like darcs.)
Does that help?
|