I have installed Sway a Wayland window manager. I have copied the `gnu/store/<hash>-sway-1.5.1/etc/sway/config` to `~/.sway/config`.
When I run `sway` or `sudo sway` on virtual terminal 1 it outputs "XDG_RUNTIME_DIR is not set in the environment. Aborting.". `man sway` and `sway --help` does not mention `XDG_RUNTIME_DIR`. An suggestions on how to deal with this error?