From 776a43073459f903def86cce7e207e7c86428fae Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 22 Sep 2023 13:18:08 -0700 Subject: [PATCH] Bug 798904 - GnuCash on Windows opens a CMD window at startup. Applied patch from bug report supplied by "Sherlock". --- libgnucash/app-utils/gnc-quotes.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 8ca8cbce87..19e846a192 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -35,6 +35,9 @@ #endif #include #include +#ifdef BOOST_WINDOWS_API +#include +#endif #include #include #include @@ -219,12 +222,18 @@ GncFQQuoteSource::run_cmd (const StrVec& args, const std::string& json_string) c bp::std_out > out_buf, bp::std_err > err_buf, bp::std_in < input_buf, +#ifdef BOOST_WINDOWS_API + bp::windows::create_no_window, +#endif svc); else process = bp::child(c_cmd, args, bp::std_out > out_buf, bp::std_err > err_buf, bp::std_in < input_buf, +#ifdef BOOST_WINDOWS_API + bp::windows::create_no_window, +#endif bp::env["ALPHAVANTAGE_API_KEY"] = m_api_key, svc);