<div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Sorry, wrong list.</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Marek</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div class="protonmail_quote">
        piatok 27. februára 2026, 22:09, Marek Greško <marek.gresko@protonmail.com> napísal/a:<br>
        <blockquote class="protonmail_quote" type="cite">
            <div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Hello,</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">I am trying to find out where to set XDG_CACHE_HOME in Fedora 43 for plasma correctly.</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">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 <span>/etc/profile.d/nss-cache.sh</span> containing</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span>#!/bin/bash</span><div><br></div><div><span>CACHEDIR="/home/local/${USER}"</span></div><div><br></div><div><span>if [[ "${HOME}" =~ ^/home/domain/.*  ]]; then</span></div><div><span>        export NSS_SDB_USE_CACHE=yes</span></div><div><span>        if [ -w "${CACHEDIR}" ]; then</span></div><div><span>                export XDG_CACHE_HOME="${CACHEDIR}/.cache"</span></div><div><span>        fi</span></div><div><span>fi</span></div><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span>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.</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span>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?</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span>Thanks</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span>Marek</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span><br></span></div>
        </blockquote><br>
    </div>