Skip to content
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

Do not override XDG_CACHE_HOME #12

Open
rogeriobastos opened this issue Nov 21, 2017 · 2 comments
Open

Do not override XDG_CACHE_HOME #12

rogeriobastos opened this issue Nov 21, 2017 · 2 comments
Labels

Comments

@rogeriobastos
Copy link

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 ?

@xtaran
Copy link
Owner

xtaran commented Nov 22, 2017

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. :-)

@rogeriobastos
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants