Re: XDG_STATE_HOME
Steven Allen <[email protected]>
| Newsgroups | gmane.linux.xdg.devel |
|---|---|
| Message-ID | <87d1cjx6r1.fsf@bistromath> |
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).
_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE2vt3MKJDbR/uMVY0wSXs/RcTlDwFAljsAJUACgkQwSXs/RcT lDy++w//UrlW9oaDwc1C1uP2tGXW8NObIcCp3ENnSU15fdk7bI455478F70lhiTd sHj01m1k+Q1Tah+QRTEqJWyR+6cukHrDFgojadLX2vIvGDVi0zKqo4LaxJ6nQaiC 3begQp8NTmvX7upd2BemYr7hQmS7Tva0VBDpGwP0twb48VEcq+hJJQEtJvdFZoJC zoDmSMwfL1drD73MElsjzd5FToLd56P97GEjFOqH66BUz9CBd1NAOKGBR8Vj4TO5 /oaV48/uho3J4lI748eO0jylRPSyAUvg9u0JOfQ/ao2BFQmsYC+3IY7TZHqlixJl O32xQtYv+l7RpJJg52AU6kAB+ubpvlg/HiB172IW+ViWHgn3jZfV0BbacXrIb4TW 5mMI3u1oY+zuJqJcrbgEWDCYJJmv4F3PJsobHGufixOyEMg3Q9gcKvHBXHs7fDyA ZkccHOJtEKE+3DkubSSidSHbir3TciNbNOSSb5QlRR4lrt4Te2u0wgFqf2Rm7dzD VimAbFE+gjtiDndTsQ1fPUhxe1k054zihEIQjohKR5smCsb69XVCKPvDnBp/iOZm s2tf8KpqAmonfdhE5Yw9CrNudzCd9Ic/szUv8CVzGbjsbpQEleHKgT6cIPK/GdbW rSAr6WWs75ltyut0TnoDXB3+2UfROiZIZ6VJoyA6ZWWzbeqLk8s= =GRcS -----END PGP SIGNATURE-----