if (address)
{
#ifdef ENABLE_KDBUS_TRANSPORT
- if(!strcmp(_dbus_string_get_const_data(address), "kdbus"))
+ if(!strcmp(_dbus_string_get_const_data(address), "kdbus:"))
{
DBusBusType type;
DBusServer* server;
# branch of the conditional because the default might conceivably
# change (see #38201)
DBUS_SESSION_BUS_CONNECT_ADDRESS="autolaunch:"
+elif test x$enable_kdbus_transport = xyes; then
+ # Autolaunching kdbus bus instead of the ordinary socket
+ DBUS_SESSION_BUS_CONNECT_ADDRESS="autolaunch:scope=kdbus"
else
# The default on all other Unix platforms (notably Linux)
# is to use auto-launching - this works a bit differently on Mac OS X
Building XML docs: ${enable_xml_docs}
Building cache support: ${enable_userdb_cache}
Building launchd support: ${have_launchd}
+ Building kdbus support: ${enable_kdbus_transport}
Init scripts style: ${with_init_scripts}
Abstract socket names: ${ac_cv_have_abstract_sockets}
System bus socket: ${DBUS_SYSTEM_SOCKET}
int autolaunch = FALSE;
int requires_arg = FALSE;
int close_stderr = FALSE;
+ int kdbus = FALSE;
int i;
int ret;
int bus_pid_to_launcher_pipe[2];
exit_with_session = TRUE;
else if (strcmp (arg, "--close-stderr") == 0)
close_stderr = TRUE;
+ else if (strcmp (arg, "--kdbus") == 0)
+ kdbus = TRUE;
else if (strstr (arg, "--autolaunch=") == arg)
{
const char *s;
"--fork",
"--print-pid", write_pid_fd_as_string,
"--print-address", write_address_fd_as_string,
+ kdbus ? "--address=kdbus:" : "",
config_file ? "--config-file" : "--session",
config_file, /* has to be last in this varargs list */
NULL);
"--fork",
"--print-pid", write_pid_fd_as_string,
"--print-address", write_address_fd_as_string,
+ kdbus ? "--address=kdbus:" : "",
config_file ? "--config-file" : "--session",
config_file, /* has to be last in this varargs list */
NULL);