-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should /var/cache/regreet/cache.toml
be moved to /var/lib/regreet/state.toml
?
#33
Comments
While the lost values are technically incalculable, they only serve as a minor convenience, and ReGreet is perfectly usable if it's deleted. Is the requirement for being able to recreate the cache actually necessary? The second link doesn't suggest that. |
That's a fair point, but at the same time the docs for |
This link may be more official and it specifies...
Deleting that file would have a noticeable impact, so I would consider deleting it "data loss" |
If changing the default is desirable I can make a PR when I have an opportunity. |
Okay then, go ahead! |
- Resolves #33. - The ReGreet cache is more of a state, especially with the skipping selection option.
- Resolves #33. - The ReGreet cache is more of a state, especially with the skipping selection option. - NOTE: This does break backwards-compat.
I have been investigating what directories are safe/inconsequential to have on a tmpfs, and the docs I am finding around FHS point toward the files in
/var/cache
being very safe to delete with the largest resulting consistences being that programs would have to take time to recompute the data. Deleting/var/cache/regreet/state.toml
will "lose" in-recalculate-able values that will require user input to re-obtain. Also deleting the file will have the very visible consistences to the user.Since the file is more state-full maybe it should live under
/var/lib/
is some form?https://www.pathname.com/fhs/pub/fhs-2.3.html#VARCACHEAPPLICATIONCACHEDATA
https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/var.html
The text was updated successfully, but these errors were encountered: