[GNC] Writing GCM File
Adrien Monteleone
adrien.monteleone at lusfiber.net
Mon Feb 2 22:14:09 EST 2026
David,
Thanks for the dirty work! (I recall just mentioning this should be
possible, but hadn't yet attempted it)
I'll hazard a *wild*, but reasonable guess that indeed, the code to read
the file looks for the geometry first, and hazard another guess that
this is because that geometry is fed in as needed variables to draw said
register. At least, that's what I'd expect to find should I read it.
(and admittedly, have not — yet)
Can you document your procedure/findings or at least link to your github
on the wiki?
Regards,
Adrien
On 2/2/26 10:39 AM, David T. via gnucash-user wrote:
> I did some more testing, and discovered that my comment about the order of sections was, in fact, significant.
>
> Specifically, if I changed my script to place my register entries before the window information, the result works. Register settings that I wrote get used, even on registers that haven't been previously set. And they are carried over from session to session.
>
> While I am most definitely not a programmer, I suspect that somehow the settings loader needs to have any register info already loaded before it can process the open tabs. Because my file placed the windows before the registers, the loader barfed and changed everything it found to defaults.
>
> I don't truly know if that's what happened, and I don't really know whether my solution will carry through over time, but for now, I've got register columns that work for me.
>
> David T.
>
> P.s. if anyone wants to see or use the code, I have put it on github.
>
> www.github.com/sunfish62/GCM
>
> Please be aware that I am not a programmer, I am not affiliated with the GnuCash project, and anything that might go wrong by using this script is entirely on you.
More information about the gnucash-user
mailing list