Hello,

it is worth mentioning I use Fedora 43 and gdm login manager. I am thinking 
about mesa_shader_cache created in $HOME/.cache location whether it is created 
by gdm or by early phase of plasma startup?

Thanks

Marek

sobota 28. februára 2026, 11:54, Marek Greško <[email protected]> 
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

Reply via email to