Bug 798904 - GnuCash on Windows opens a CMD window at startup.

Applied patch from bug report supplied by "Sherlock".
This commit is contained in:
John Ralls 2023-09-22 13:18:08 -07:00
parent 1a78f82a83
commit 776a430734

View File

@ -35,6 +35,9 @@
#endif
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#ifdef BOOST_WINDOWS_API
#include <boost/process/windows.hpp>
#endif
#include <boost/process.hpp>
#include <boost/regex.hpp>
#include <boost/property_tree/ptree.hpp>
@ -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);