diff --git a/NEWS b/NEWS index c1fececb7..1a760dfff 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,15 @@ +UNRELEASED CHANGES +================== + +* Change the default D-Bus system bus socket address from + `/var/run/dbus/system_bus_socket` to `/run/dbus/system_bus_socket`, in line + with changes in dbus.git. This can now be overridden by passing + `-Druntime_dir=/some/path` at configure time — the default is `/run`, which + should work for all users except distributions where `/run` is not equivalent + to `/var/run`. OS distributors should check that this configured path matches + the runtime directory configured for their D-Bus daemon. (!3101) + + Overview of changes in GLib 2.75.0, 2022-11-10 ============================================== diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c index c8c432e09..523b1b8d0 100644 --- a/gio/gdbusaddress.c +++ b/gio/gdbusaddress.c @@ -1339,8 +1339,10 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type, { /* While the D-Bus specification says this must be `/var/run/dbus/system_bus_socket`, * a footnote allows it to use localstatedir: - * https://dbus.freedesktop.org/doc/dbus-specification.html#ftn.id-1.13.6.4.3.3 */ - ret = g_strdup ("unix:path=" GLIB_LOCALSTATEDIR "/run/dbus/system_bus_socket"); + * https://dbus.freedesktop.org/doc/dbus-specification.html#ftn.id-1.13.6.4.3.3 + * or, on systems where /run is the same as /var/run, runstatedir: + * https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209 */ + ret = g_strdup ("unix:path=" GLIB_RUNSTATEDIR "/dbus/system_bus_socket"); } break;