mpdris2-rs-0.1.3 can't start
Closed this issue · 5 comments
Looks like a D-Bus connection issue since the mpd connection seems okay. Do your system have /run/user/$UID/bus
socket?
No, my dbus socket is /tmp/dbus-<alphanum>
, and I'm not starting my window manager (dwm) with dbus-launch
or dbus-run-session
, so that the $DBUS_SESSION_BUS_ADDRESS isn't in the environment.
Then that should be the root of the issue. The library this program's using (zbus) reads $DBUS_SESSION_BUS_ADDRESS
and fall backs to $XDG_RUNTIME_DIR/bus
if that doesn't exists. (See https://docs.rs/zbus/latest/zbus/enum.Address.html#method.session)
I guess I can add a feature to manually specify the bus address. What do you think?
Better not, since $DBUS_SESSION_BUS_ADDRESS
isn't always XDG_RUNTIME_DIR/bus
and (at least by running dbus-launch) it creates a socket in /tmp
. I think you should clarify in README that such a variable needs to be exposed.
Also I started my sx (using it instead of xinit) with dbus-launch --exit-with-session
, and the mpdris caught on well