Jump to content
funtoo forums
  • 0

Where should XDG_CACHE_HOME be defined.



I have created `/etc/profile.d/xdg_cache_home.sh` with following contents:

export XDG_CACHE_HOME="/tmp/${USER}/.xdg-cache"

Today I found that gdm tries to create `$XDG_CACHE_HOME` when `$USER` was not yet set, which leads to `/tmp/.xdg-cache` being created. Everything works fine - it's just that empty dir annoys me a bit. So I started to digging up if I placed that file correctly and now I'm a bit lost, as seems like I had to add env var definition into `/etc/env.d` instead. Thus I have two questions:


1. (main one) where one should define that env var if he wants non-standard value? inside `profile.d` or `env.d` (if he wants global default).

2. There's man that describes purpose of env.d, but I'm struglling to find any description of profile.d

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...