I just spent some time debugging mysterious KDE failures I was having in kinoite, and they were mostly due to having contents in my ~/.cache
that KDE didn’t think were consistent as I moved between different ostree versions.
I think I will write a bash script that saves the OSTREE_VERSION from /etc/os-release somewhere, and when it detects that has changed, it will flush ~/.cache
. But I either have to be careful not to flush anything just put there at login, or I have to do this prior to logging in, else it will cause things that depend on ~/.cache
content provided at login to fail.
Does anyone have a recommendation about the best way to accomplish this? I could make it a systemd service, but when to have it run to avoid any damage to content put into ~/.cache
by logging in?