Created
January 5, 2026 08:57
-
-
Save stephankoelle/e8cac4c5eb81c51750d87bde5b7d9388 to your computer and use it in GitHub Desktop.
Fix: $XDG_RUNTIME_DIR not define
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # how to fix: | |
| # Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user) | |
| mkdir -p ~/.bashrc.d | |
| echo "export XDG_RUNTIME_DIR=/run/user/$(id -u)" > ~/.bashrc.d/systemd | |
| source ~/.bashrc.d/systemd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment