New comment by gspe on void-packages repository https://github.com/void-linux/void-packages/issues/15911#issuecomment-770359631 Comment: Correct configuration of D-Bus is not an easy task, information are not very clear and in some case in contradiction this is true in every distribution not only in void, for example look at this long mail from debian mailing list https://lists.debian.org/debian-devel/2016/08/msg00554.html In my opinion Void D-Bus documentation doesn't provide enough information about how an user have to correctly start an user session bus. I've taken inspiration from kde, https://github.com/KDE/plasma-workspace/blob/af44f2cc79fb816e31ea125141e75abb66320602/startkde/plasma-dbus-run-session-if-needed, and now I'm starting my sway with a wrapper script, `/usr/bin/sway-run.sh` with this content: ``` #!/bin/sh # Session export XDG_SESSION_TYPE=wayland export XDG_SESSION_DESKTOP=sway export XDG_CURRENT_DESKTOP=sway # D-Bus # If the session bus is not available it is spawned and wrapper round our program # Otherwise we spawn our program directly drs= if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ] then drs=dbus-run-session fi # Environment # Imports sway desktop enviroments set -a . /etc/sway/env set +a exec ${drs} sway "$@" ``` So having some examples on how to start a dbus user session will be very nice. Another idea would be to have some sane default configuration for window manager in addiction to the standard one, for example add the sway wrapper script so a medium user can easily start a sway session but advanced user can start sway session as he likes.