From efb24f090dc96845c21fe86898f1850423b7e2db Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 4 Apr 2023 16:37:57 -0700 Subject: [PATCH] Bug 798815 - flatpak run --command=gnucash-cli cannot download... quotes since 5.0. The filename is getting stuffed into the m_quotes_cmd vector unless --namespace is specified, so check if that's happened and copy the value over. --- gnucash/gnucash-cli.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnucash/gnucash-cli.cpp b/gnucash/gnucash-cli.cpp index 123ba504d1..23a8475fc9 100644 --- a/gnucash/gnucash-cli.cpp +++ b/gnucash/gnucash-cli.cpp @@ -139,6 +139,8 @@ Gnucash::GnucashCli::start ([[maybe_unused]] int argc, [[maybe_unused]] char **a } else if (m_quotes_cmd.front() == "get") { + if (!m_file_to_load && m_quotes_cmd.size() == 2) + m_file_to_load = m_quotes_cmd[1]; if (!m_file_to_load || m_file_to_load->empty()) {