gnucash stable: Bug 798904 - GnuCash on Windows opens a CMD window at startup.
John Ralls
jralls at code.gnucash.org
Fri Sep 22 16:21:48 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/776a4307 (commit)
from https://github.com/Gnucash/gnucash/commit/1a78f82a (commit)
commit 776a43073459f903def86cce7e207e7c86428fae
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Sep 22 13:18:08 2023 -0700
Bug 798904 - GnuCash on Windows opens a CMD window at startup.
Applied patch from bug report supplied by "Sherlock".
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 <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);
Summary of changes:
libgnucash/app-utils/gnc-quotes.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
More information about the gnucash-changes
mailing list