Skip to content

Tips for ZBus and WSL? #436

Closed Answered by zeenix
LukeAbby asked this question in Q&A
Discussion options

You must be logged in to vote

The backtrace isn't particularly useful (it never leaves core/main.rs even with full backtrace) and the message could definitely be improved in general.

The backtrace is just unwinding the underlying I/O error but I think notify_rust can and should present a better error: "Failed to connect to session bus: "

ZBus will look at $XDG_RUNTIME_DIR/bus. On WSL XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir and bus doesn't exist in that directory.

That's actually a fallback. There really should be DBUS_SESSION_BUS_ADDRESS env set if you have session bus running. If you launch that manually, you may need to set and/or export this env manually as well.

I have no idea what to do to solve it. Are there …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zeenix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants