Commit 65c52695 authored by Yongun Seong's avatar Yongun Seong Committed by Anderson Torres
Browse files

gnucash: fix finance-quote-wrapper exec

parent 8bf3e834
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
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,
+1 −1
Original line number Diff line number Diff line
@@ -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;
  };
}