In my .bashrc I set my XDG_CACHE_HOME variable to "~/.cache/".

This breaks my Firefox installation, telling me that it cannot load my profile.

Without this line, Firefox loads properly.

I have tried sudo -R chown $USER:$USER ~/.cache/mozilla with no avail (same for my .mozilla folder).

Is there something I am missing?


Shells don't perform tilde expansion inside quotes, so your "~/.cache" doesn't point to your home directory—it points to a subdirectory .cache of a directory called ~.

Remove the quotes, and everything should work as expected:

export XDG_CACHE_HOME=~/.cache
| improve this answer | |
  • Oh man, that is hilarious. I was wondering what that random tilda folder doing in my home directory that had been generated was doing there! Thank you! – Adam Thompson Apr 27 '16 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.