I need to set some environment variables such as the XDG spec ones, before KDE starts in such a way that kwin and any apps run from KDE will inherit them. Where could I do this, and how?
How to set env variables so that KDE recognizes them
environment-variableskdekwin
Best Answer
Put them in a
.sh
file in~/.kde/env/
(possibly~/.kde4/env/
or similar; varies by distribution).