I wonder why people didn’t settle on XDG_CONFIG_HOME
as ~/etc
. Makes so much sense!
export XDG_DATA_HOME=~/share
export XDG_CONFIG_HOME=~/etc
export XDG_STATE_HOME=~/local/state
export XDG_CACHE_HOME=~/var/cache
export XDG_RUNTIME_DIR=~/var/run
@adi@twtxt.net Huh, you’re right. I never thought about that.
My XDG_STATE_HOME
directory doesn’t even exist, no program has created it.
$XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.
The $XDG_STATE_HOME contains state data that should persist between (application) restarts, but
that is not important or portable enough to the user that it should be stored in $XDG_DATA_HOME. It may contain:actions history (logs, history, recently used files, …)
current state of the application that can be reused on a restart (view, layout, open files, undo history, …)
I don’t believe it’s a good idea to wipe it.
$ cat /etc/fstab
...
swap /home/adi/var/cache mfs rw,-s512M,noatime,nosuid,nodev 1 0
and https://dataswamp.org/~solene/2021-12-15-openbsd-mfs-persistency.html for XDG_CACHE_HOME
.
Related threads https://nixers.net/Thread-How-do-you-tidy-your-home-aka-tree-L2, https://nixers.net/Thread-XDG-CONFIG-HOME-as-etc?pid=23654#pid23654
@movq@www.uninformativ.de I so wouldn’t want to delete this :
view, layout