gnucash: fix finance-quote-wrapper exec

This commit is contained in:
Yongun Seong 2023-05-20 23:53:50 +09:00 committed by Anderson Torres
parent 8bf3e834da
commit 65c5269589
2 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,5 @@
diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp
index 3003fca71f..e01cb10b50 100644
index 3003fca71f..2f2b1398e1 100644
--- a/libgnucash/app-utils/gnc-quotes.cpp
+++ b/libgnucash/app-utils/gnc-quotes.cpp
@@ -122,7 +122,6 @@ private:
@ -10,7 +10,7 @@ index 3003fca71f..e01cb10b50 100644
std::string c_fq_wrapper;
std::string m_version;
StrVec m_sources;
@@ -145,7 +144,6 @@ static std::string parse_quotesource_error(const std::string& line);
@@ -145,13 +144,12 @@ static std::string parse_quotesource_error(const std::string& line);
static const std::string empty_string{};
GncFQQuoteSource::GncFQQuoteSource() :
@ -18,6 +18,13 @@ index 3003fca71f..e01cb10b50 100644
m_version{}, m_sources{}, m_api_key{}
{
char *bindir = gnc_path_get_bindir();
c_fq_wrapper = std::string(bindir) + "/finance-quote-wrapper";
g_free(bindir);
- StrVec args{"-w", c_fq_wrapper, "-v"};
+ StrVec args{"-v"};
auto [rv, sources, errors] = run_cmd(args, empty_string);
if (rv)
{
@@ -197,7 +195,7 @@ m_version{}, m_sources{}, m_api_key{}
QuoteResult
GncFQQuoteSource::get_quotes(const std::string& json_str) const
@ -43,4 +50,3 @@ index 3003fca71f..e01cb10b50 100644
bp::std_out > out_buf,
bp::std_err > err_buf,
bp::std_in < input_buf,

View file

@ -137,7 +137,7 @@ stdenv.mkDerivation rec {
- Financial Calculations
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ domenkozar AndersonTorres rski ];
maintainers = with maintainers; [ domenkozar AndersonTorres rski nevivurn ];
platforms = platforms.unix;
};
}