From 378053ba594cca44e1bc9e069eab91b0a0954308 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 1 Jun 2007 22:05:42 +0000 Subject: * bus/main.c (main): uses _dbus_get_config_file_name() to detect session.conf location on win32. * dbus-sysdeps-win.h (_dbus_get_config_file_name,_dbus_file_exists): new prototyp, undefined interface after including windows.h because t makes trouble when a paramater is named interface. * dbus-sysdeps-win.c (_dbus_get_install_root,_dbus_get_config_file_name,_dbus_file_exists): new functions. --- bus/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bus') diff --git a/bus/main.c b/bus/main.c index bf471484..421bd8bf 100644 --- a/bus/main.c +++ b/bus/main.c @@ -24,6 +24,9 @@ #include "driver.h" #include #include +#ifdef DBUS_WIN +#include +#endif #include #include #include @@ -296,8 +299,14 @@ main (int argc, char **argv) { check_two_config_files (&config_file, "session"); +#ifdef DBUS_WIN + if (!_dbus_get_config_file_name (&config_file,"session.conf")) + exit (1); + /* don't know how to map DBUS_SESSION_CONFIG_FILE to the function above */ +#else if (!_dbus_string_append (&config_file, DBUS_SESSION_CONFIG_FILE)) exit (1); +#endif } else if (strstr (arg, "--config-file=") == arg) { -- cgit