summaryrefslogtreecommitdiff
path: root/bus/main.c
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-02-09 08:37:50 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2010-02-09 08:37:50 +0100
commit523e01827eac49ec30afa173d31cdeee4be6381a (patch)
tree237317a894721641571ad7b5395da1950e436874 /bus/main.c
parent27a46ea9cbf8d32882550a78c13e87a2bb6d1442 (diff)
downloaddbus-523e01827eac49ec30afa173d31cdeee4be6381a.tar.gz
fixed bug on win32 not been able to use session bus with --config-file option
Internal setup of session bus type was bound to the presence of the --session command line parameter which prevents to use the --config-file parameter for session bus setup.
Diffstat (limited to 'bus/main.c')
-rw-r--r--bus/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bus/main.c b/bus/main.c
index 50f47dc3..8f238968 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -298,7 +298,6 @@ main (int argc, char **argv)
}
else if (strcmp (arg, "--session") == 0)
{
- is_session_bus = TRUE;
check_two_config_files (&config_file, "session");
if (!_dbus_append_session_config_file (&config_file))
@@ -455,6 +454,9 @@ main (int argc, char **argv)
exit (1);
}
+ is_session_bus = bus_context_get_type(context) != NULL
+ && strcmp(bus_context_get_type(context),"session") == 0;
+
if (is_session_bus)
_dbus_daemon_publish_session_bus_address (bus_context_get_address (context));