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
Question
ixti
Hello.
I have created `/etc/profile.d/xdg_cache_home.sh` with following contents:
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
Link to comment
Share on other sites
0 answers to this question
Recommended Posts