godbus / dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
976 stars 225 forks source link

Use the default fallback path for the session bus #385

Open WhyNotHugo opened 4 months ago

WhyNotHugo commented 4 months ago

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

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.

Fixes: https://github.com/godbus/dbus/issues/372

guelfey commented 2 weeks ago

I'm a bit on the fence here - I can see that dbus-launch is usually not helpful, but generally I find it useful to stick to the official spec - after all, ensuring that different implementations have the same rough behavior is what the spec is for. So I'd say this can be merged as soon as it's adjusted in the spec itself (the MR you linked is not merged yet).