[PATCH] fixed bug not been able to set session bus type from config file.

Ralf Habacker ralf.habacker at freenet.de
Mon Feb 8 01:25:51 PST 2010


Setup of internal session bus type was bound to the presence of the --session 
command line parameter, which prevents to use the --config-file parameter.

---
 bus/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/bus/main.c b/bus/main.c
index 50f47dc..403283e 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,8 @@ 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));
 
-- 
1.6.4.msysgit.0


--------------090401000609060804070909--


More information about the dbus mailing list