# A login shell outside the desktop session, the console's among them, finds # the session bus where the session starts it, $XDG_RUNTIME_DIR/bus: the same # directory brintos-wayland-start picks. if [ -z "${XDG_RUNTIME_DIR-}" ]; then _u=${EUID:-$(id -u)} XDG_RUNTIME_DIR=/run/user/$_u mkdir -p "$XDG_RUNTIME_DIR" 2>/dev/null || XDG_RUNTIME_DIR=/tmp/runtime-$_u if mkdir -p "$XDG_RUNTIME_DIR" 2>/dev/null && chmod 0700 "$XDG_RUNTIME_DIR" 2>/dev/null; then export XDG_RUNTIME_DIR else unset XDG_RUNTIME_DIR fi unset _u fi