Where to set XDG_CACHE_HOME?
Marek Greško
marek.gresko at protonmail.com
Sat Feb 28 10:50:32 GMT 2026
Sorry, wrong list.
Marek
piatok 27. februára 2026, 22:09, Marek Greško <marek.gresko at protonmail.com> napísal/a:
> Hello,
>
> I am trying to find out where to set XDG_CACHE_HOME in Fedora 43 for plasma correctly.
>
> I have setup an environment where users have home directories on a nfs share. I wanted to create local directory for XDG_CACHE_HOME. So I created a file /etc/profile.d/nss-cache.sh containing
>
> #!/bin/bash
>
> CACHEDIR="/home/local/${USER}"
>
> if [[ "${HOME}" =~ ^/home/domain/.* ]]; then
> export NSS_SDB_USE_CACHE=yes
> if [ -w "${CACHEDIR}" ]; then
> export XDG_CACHE_HOME="${CACHEDIR}/.cache"
> fi
> fi
>
> But it was not doing anything. Then I found out it works when I run some applications from the terminal, so I realized plasma does not use /etc/profile.d. Thereafter I tried to copy the file into the /etc/xdg/plasma-workspace/env/ directory. It mostly works. But I get the mesa_shader_cache directory created in the $HOME/.cache and also in the $XDG_CACHE_HOME. I think this is because the directory is created prior to runing the script in /etc/xdg/plasma-workspace/env, and then aft4er loading the file the directory is created again.
>
> Do you have any clue where should be the script run from to be started soon enough I do not have the $HOME/.cache/mesa_shader_cache created?
>
> Thanks
>
> Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20260228/8b4f733c/attachment.htm>
More information about the kdepim-users
mailing list