11

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?

xenoterracide
  • 57,918
  • 74
  • 184
  • 250

2 Answers2

13

For Plasma 5 it's

~/.config/plasma-workspace/env/

davispuh
  • 341
  • 3
  • 6
8

Put them in a .sh file in ~/.kde/env/ (possibly ~/.kde4/env/ or similar; varies by distribution).

ephemient
  • 15,640
  • 5
  • 49
  • 39
  • I've been trying that, but my XDG configs are still showing up in `~/.config` such as `~/.config/akonadi`, here's [the script](https://github.com/xenoterracide/dot_etc/blob/master/env)that I copied to that directory. I actually gave this answer first, but deleted it when I realized it wasn't working – xenoterracide Jan 28 '11 at 23:20
  • 1
    @xenoterracide: The scripts must be named `*.sh`. – ephemient Jan 28 '11 at 23:21
  • well that's very un-unix-y gotcha's for the lose – xenoterracide Jan 28 '11 at 23:28
  • tested, and renaming to use `.sh` works, mind adding that as part of the answer? – xenoterracide Jan 28 '11 at 23:43