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
startup task to run regardless of who is running GC.
If I put config-user.scm in $HOME
<https://code.gnucash.org/wiki/Configuration_Locations#HOME>/.var/app/org.gnucash.GnuCash/data/gnucash,
won't it be user-specific?
On 25.11.22 21:07, john wrote:
On Nov 25, 2022, at 12:56 AM, rsbrux via gnucash-user<[email protected]>
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 logging in.
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.
Would there be some way to get GC to perform the Price Database automatically
when GC is started (interactively), instead of performing the automatic price
update in a separate session?
Yes, but only through 4.x because the quotes system won't be accessible from
Scheme in GnuCash 5, it having been rewritten in C++.
Create if necessary $GNC_DATA_HOME/config-user.scm and edit it to add
(gnc-hook-add-scm-dangler HOOK-UI-POST-STARTUP
(lambda () (gnc:book-add-quotes #f (gnc-get-current-book)))
Regards,
John Ralls
_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.