Hi,
I've been having this problem for about a year now. I have to edit a script to manually set XDG_RUNTIME_DIR or KDE won't start. I currently have the line
XDG_RUNTIME_DIR=/var/run/user/$UID
in /usr/bin/startkde. It works and doesn't cause any other problems, but I have to re-do it every time I update Plasma. So I would like to fix the problem once and for all.
I am using systemd, Plasma 5 and sddm. I've gone through quite a few versions, so I don't think version information really matters here.
I know pam_systemd.so should the directory and set the variable and it has not always been doing this properly. But the fact that it seems to be working for some people makes me think their should be a solution. I've searched, but I couldn't find anything.
Regards,
Malte

