New comment by timsofteng on void-packages repository https://github.com/void-linux/void-packages/issues/33167#issuecomment-929523472 Comment: > The error literally said what went wrong. I assume your $XDG_RUNTIME_DIR is set to `/tmp` which is owned by root. You should make it a subdir of `/tmp` instead. > > For example, here is a snippet from the script I use to start sway: > > ```shell > if [ -z "${XDG_RUNTIME_DIR}" ] > then > userid=$(id -u ${USER}) > export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)" > if [ ! -d "${XDG_RUNTIME_DIR}" ] > then > mkdir -p "${XDG_RUNTIME_DIR}" > chmod 0700 "${XDG_RUNTIME_DIR}" > fi > fi > ``` What if I just will set this variable to /home/username/.tmp? Without this script. Should it work?