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?
Put them in a
.sh file in
~/.kde4/env/ or similar; varies by distribution).
For Plasma 5 it's