On Sat, 27 Mar 2021 20:43:49 -0400 Bone Baboon <bone.bab...@disroot.org> wrote:
> 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? > Run it with dbus-run-session sway. Do **not** run it as root. Generally speaking, don't randomly run things as root.