Re: [GNC] Automatic Price Updates

2022-12-15 Thread rsbrux via gnucash-user
Meanwhile I have found a simpler solution, which should also continue to work with GnuCash 5.x. I have created a script named "z-gnucash-update.sh" in "/etc/profile.d/", containing: flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get to GnuCash data file> The script name begins

Re: [GNC] Automatic Price Updates

2022-12-05 Thread john
Get it working before worrying about the rest. First make sure that the hook is firing by adding a print statement to the lambda, something like (gnc-hook-add-scm-dangler HOOK-UI-POST-STARTUP (lambda () (format #t "Retrieving Quotes~%") (gnc:book-add-quotes #f (gnc-get-current-book))

Re: [GNC] Automatic Price Updates

2022-12-05 Thread rsbrux via gnucash-user
A little further study suggests that I should have placed config-user.scm in GNC_CONFIG_HOME (in my case $HOME/.var/app/org.gnucash.GnuCash/config/gnucash/) instead of GNC_DATA_HOME (see https://wiki.gnucash.org/wiki/Configuration_Locations#In_GNC_CONFIG_HOME). However, moving it there still

Re: [GNC] Automatic Price Updates

2022-11-27 Thread rsbrux via gnucash-user
Of course. Sent from my iPad > On 27 Nov 2022, at 22:41, John Ralls wrote: > > Did you restart GnuCash? > > Regards, > John Ralls > > >> On Nov 27, 2022, at 11:07 AM, rsbrux wrote: >> >> P.S. I created the file >> $HOME/.var/app/org.gnucash.GnuCash/data/gnucash/config-user.scm >> >> wit

Re: [GNC] Automatic Price Updates

2022-11-27 Thread John Ralls
Did you restart GnuCash? Regards, John Ralls > On Nov 27, 2022, at 11:07 AM, rsbrux wrote: > > P.S. I created the file > $HOME/.var/app/org.gnucash.GnuCash/data/gnucash/config-user.scm > > with the contents: > > (gnc-hook-add-scm-dangler HOOK-UI-POST-STARTUP > (lambda () (gnc:book-add

Re: [GNC] Automatic Price Updates

2022-11-27 Thread rsbrux via gnucash-user
P.S. I created the file $HOME /.var/app/org.gnucash.GnuCash/data/gnucash/config-user.scm with the contents: (gnc-hook-add-scm-dangler HOOK-UI-POST-STARTUP (lambda () (gnc:book-add-quotes #f (gnc-get-current-book))) under my own

Re: [GNC] Automatic Price Updates

2022-11-27 Thread rsbrux via gnucash-user
Thanks, that sounds very promising! My only problem is that I have a Flatpak installation under Ubuntu. According to https://code.gnucash.org/wiki/Configuration_Locations#GNC_DATA_HOME, GNC_DATA_HOME is under $HOME. However, I have installed GC for all users on the system and want the start

Re: [GNC] Automatic Price Updates

2022-11-25 Thread john
> On Nov 25, 2022, at 12:56 AM, rsbrux via gnucash-user > wrote: > > I used to have a chron job set up to automatically fetch security prices on > first login each day, but found this inconvenient because it locks the data > file, and opening GnuCash is often the first thing I do upon loggi

Re: [GNC] Automatic Price Updates

2022-11-25 Thread David Carlson
Is your price update so slow that you cannot wait for it to finish before proceeding with other tasks? Even when l immediately execute a File Save right after an update it only takes ten or fifteen seconds or so, far more than the actual data download time with my data file. On Fri, Nov 25, 20

Re: [GNC] Automatic Price Updates

2022-11-25 Thread Michael or Penny Novack
I have noticed that when I have GC open interactively, I can start an update in the price database window and let it run in the background while I continue to work in the registers. Just an alert. When we say that while gnucash is safe for multiple sequential users but not for multiple

[GNC] Automatic Price Updates

2022-11-25 Thread rsbrux via gnucash-user
I used to have a chron job set up to automatically fetch security prices on first login each day, but found this inconvenient because it locks the data file, and opening GnuCash is often the first thing I do upon logging in. I have noticed that when I have GC open interactively, I can start an