* core-load-paths.el: New spacemacs-state-directory to store user state files - #16759
* core-load-paths.el: New spacemacs-state-directory to store user state files#16759sunlin7 wants to merge 2 commits into
Conversation
…ate files Support initializing the spacemacs-cache-directory from environment variable SPACEMACSCACHE or XDG_CACHE_HOME.
c5606b4 to
64ea406
Compare
|
This PR may be a candidate where it would make sense to postpone the merge until after we release a new stable version, see #16775. My current plan (open to suggestions) is to use a directory scheme that is compatible with the no-littering package (and with XDG in a broad sense, though no-littering does not use a cache directory), and add a user option (disabled by default) to use no-littering. By default, the old directories should probably be used, as users will likely have to manually/semi-automatically migrate their files to the new directories. The following table contains most instances of files that are currently put into the cache directory. The second column specifies where they would end up with the current state of this PR (subject to change), and the third column is where no-littering would put them. The no-littering package uses two customizable locations:
There are some other files (not in the table) which are currently put into |
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this PR is still need merging! |
To fix #7818, a new variable
spacemacs-state-directoryis introduced.NOTE:
It's part of work on
XDG_*directories supports. #3589.It's pre-work for #16706.