Actually, after reading that proposal, that's not exactly what I was
thinking. My complaint is that the current system mixes state (e.g.,
recentf, email, trash, etc.) with program data (icons, themes, fonts,
etc.) in XDG_DATA_HOME.

I ran across this issue because I need to store the spacemacs code,
spacemacs stat (recent file list, auto save files, etc.), and spacemacs
config (managed by the user). According to a strict reading of the spec,
the code could go in `XDG_CACHE_DIR` (it *can* be re-downloaded) but
that's mildly absurd (re-downloading/compiling is a non-trivial
operation). So, disregarding that option, I have a pigeonhole problem: I
have three things and two places to put them.

So, there really should be either:

1. A separate STATE dir for storing state:
    /usr/{share,lib} -> XDG_DATA_DIR
    /var/lib         -> XDG_STATE_DIR (`~/.local/state`)
2. A separate LIB dir for storing "code" and "shared" data:
    /usr/{share,lib} -> XDG_LIB_DIR

Some programs like python are solving this by putting program data in
`~/.local/lib` (option 2) but personally, I think option 1 is more
correct (and leaves icons, trash etc. where they are).

Attachment: signature.asc
Description: PGP signature

_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to