unburden-home-dir icon indicating copy to clipboard operation
unburden-home-dir copied to clipboard

Do not override XDG_CACHE_HOME

Open rogeriobastos opened this issue 8 years ago • 2 comments

Hi,

I have to set XDG_CACHE_HOME="$HOME/.cache" because if it's empty unburden-home-dir overrides it. Is there a way of use unburden-home-dir without it set XDG_CACHE_HOME to the /tmp/.unburden-%u/cache ?

rogeriobastos avatar Nov 21 '17 23:11 rogeriobastos

You've got some point there.

The modification does not happen inside unburden-home-dir itself but in the shipped /etc/X11/Xsession.d/25unburden-home-dir-xdg. The idea is that $XDG_CACHE_HOME is not inside the $HOME before unburden-home-dir even had a chance to run, hence avoiding issues if files under $XDG_CACHE_HOME are already in use.

Then again IMHO it does not make much sense to keep $XDG_CACHE_HOME to $HOME/.cache/ since that's the first directory you usually will move away with unburden-home-dir.

So the only case I can imagine where you want to keep $XDG_CACHE_HOME being set to $HOME/.cache/ is when you use unburden-home-dir only for other directories. Is that the case for you? (At least at the moment I can't imagine a scenario where this is the case. Maybe you can show me one. I'm curious. :-)

xtaran avatar Nov 22 '17 02:11 xtaran

I want to move out just the bigger directories (browser cache in my case) and keep all other cache directories. Programs like rofi has tiny cache files in $XDG_CACHE_HOME and I don't want remove it.

rogeriobastos avatar Nov 22 '17 20:11 rogeriobastos