paru icon indicating copy to clipboard operation
paru copied to clipboard

[Request] Don't put devel.json to .cache/paru

Open monosans opened this issue 4 years ago • 2 comments

I think that devel.json shouldn't be placed in ~/.cache folder, because system cleaners (BleachBit, for example) delete all the content of ~/.cache folder. It leads to paru forgetting which commit of package is installed. I suggest putting devel.json in XDG_STATE_HOME or XDG_DATA_HOME.

monosans avatar Feb 09 '21 10:02 monosans

but it is not really "shared" isn't it?

soloturn avatar Feb 09 '21 12:02 soloturn

.local/share is a default directory for user data[1]. Most of its content probably can't be shared, but there is no alternative default location. It's probably best to ignore the name

[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

mqus avatar Feb 09 '21 23:02 mqus

Fixed in https://github.com/Morganamilo/paru/pull/822.

monosans avatar Sep 25 '22 12:09 monosans