2

$XDG_RUNTIME_DIR is not well set on my computer and this causes upstart to write PID files to my home folder. May I know what it should be and where to set it?

4

As far as I can tell, it is of the form:

/run/user/$(id -u)

For example, my UID is 1000, so XDG_RUNTIME_DIR is /run/user/1000. You can try setting it in ~/.pam_environment:

echo "XDG_RUNTIME_DIR=/run/user/$(id -u)" >> ~/.pam_environment

I couldn't find any sources for this, though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.