[GNC] Run gnucash-cli commands with Flaptak install?

Colin Arndt colinfarndt at gmail.com
Sun Oct 18 10:22:22 EDT 2020


Hi all,

I recently switched from an Arch-based system where I had a cron job running gnucash-cli once a week to update my security quotes. Now I'm on Fedora 32 and would like to set up a systemd timer to do the same thing (because as it turns out, systemd is way better at this. What did I know?)
The only issue is now I'm on the Flatpak version, and of course the host system does not possess the gnucash-cli command. I'm not sure how to automate it now.
I used to run:
gnucash-cli --quotes get /path/to/GnuCashfile

>From the docs I can see I need to enter the following to enter the GnuCash command line environment:
flatpak run --command=sh org.gnucash.GnuCash

Can these be combined into a single command on the host system? Feel free to let me know if this is more of a Flatpak question than a GnuCash one, though I figured others may have experience with this. If nothing else, getting the solution in the list here gets it into the archives if others want to replicate it.
Thanks,
Colin



More information about the gnucash-user mailing list