diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index 7de5ce736b5a6108d40b2af3c33f0f5f4045c178..6acbe7fc98f1ecd8a10b0b20e020595b78a242e9 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -35,6 +35,7 @@ #include using namespace Transport; +using namespace Transport::Util; DEFINE_LOGGER(logger, "Spectrum"); @@ -271,6 +272,10 @@ int main(int argc, char **argv) return 1; } +#ifdef WIN32 + SetCurrentDirectory( utf8ToUtf16(CONFIG_STRING(&config, "service.working_dir")).c_str() ); +#endif + #ifndef WIN32 if (!CONFIG_STRING(&config, "service.group").empty() ||!CONFIG_STRING(&config, "service.user").empty() ) { struct group *gr;