Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the default fallback path for the session bus #372

Open
WhyNotHugo opened this issue Jun 20, 2023 · 0 comments · May be fixed by #385
Open

Use the default fallback path for the session bus #372

WhyNotHugo opened this issue Jun 20, 2023 · 0 comments · May be fixed by #385

Comments

@WhyNotHugo
Copy link
Contributor

If DBUS_SESSION_BUS_ADDRESS is unset, then $XDG_RUNTIME_DIR/bus should be used.

This is currently a de-facto standard done by most libraries, but is being amended into the spec itself.

Additionally, the current fallback uses dbus-launch. This is not a good idea, since it will create a dedicated bus for this application which can't be discovered by any other application.

WhyNotHugo added a commit to WhyNotHugo/dbus that referenced this issue May 14, 2024
This is currently a de-facto standard done by most libraries, and is
being amended into the spec itself[1].

The previous behaviour (starting a new D-Bus server via dbus-launch) is
generally discouraged, since it will start a D-Bus at a non-standard
location and other processes have no mechanism via which they can locate
the bus socket.

[1]: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/395

Fixes: godbus#372
@WhyNotHugo WhyNotHugo linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant