mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gdbusaddress: Form default system dbus path using meson definitions
This is useful for systems where rootfs doesn't contain /var directory, e.g. on Android. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
This commit is contained in:
parent
74afeca98b
commit
20e1508e6e
@ -1337,7 +1337,10 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type,
|
|||||||
|
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
{
|
{
|
||||||
ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
|
/* 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");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2109,6 +2109,8 @@ glib_conf.set('HAVE_GETTEXT', 1)
|
|||||||
|
|
||||||
glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
|
glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
|
||||||
|
|
||||||
|
glib_conf.set_quoted('GLIB_LOCALSTATEDIR', glib_localstatedir)
|
||||||
|
|
||||||
# libmount is only used by gio, but we need to fetch the libs to generate the
|
# libmount is only used by gio, but we need to fetch the libs to generate the
|
||||||
# pkg-config file below
|
# pkg-config file below
|
||||||
libmount_dep = []
|
libmount_dep = []
|
||||||
|
Loading…
Reference in New Issue
Block a user