2021-10-18 GnuCash IRC logs
00:45:17 *** FH_thecat has joined #gnucash
01:12:27 *** Mechtilde has joined #gnucash
01:13:58 *** frakturfreak2 has quit IRC
01:25:27 *** o01eg has joined #gnucash
01:28:30 *** frakturfreak2 has joined #gnucash
01:29:00 *** o01eg has quit IRC
01:58:13 *** fell has quit IRC
01:59:34 *** fell has joined #gnucash
01:59:34 *** ChanServ sets mode: +o fell
02:01:27 *** sbluhm has joined #gnucash
02:04:09 *** Mechtilde has quit IRC
02:06:28 *** joo has joined #gnucash
02:06:28 *** ChanServ sets mode: +v joo
02:08:43 *** sbluhm has quit IRC
02:10:06 *** sbluhm has joined #gnucash
02:10:33 *** sbluhm has joined #gnucash
02:19:07 *** gjanssens has joined #gnucash
02:19:08 *** ChanServ sets mode: +o gjanssens
03:11:15 *** Cork has quit IRC
03:12:41 *** Cork has joined #gnucash
03:23:14 *** Cork has quit IRC
03:41:31 *** Cork has joined #gnucash
05:26:40 *** Cork has quit IRC
05:39:56 *** Aussie_matt has joined #gnucash
05:50:13 *** Bambuzel has joined #gnucash
05:50:13 *** ChanServ sets mode: +v Bambuzel
05:57:55 *** Cork has joined #gnucash
06:11:27 *** Bambuzel has quit IRC
06:11:37 *** Bambuzel has joined #gnucash
06:11:37 *** ChanServ sets mode: +v Bambuzel
06:18:59 *** Cork has quit IRC
06:24:56 *** User has joined #gnucash
06:28:24 *** fell has quit IRC
06:32:13 *** fell has joined #gnucash
06:32:13 *** ChanServ sets mode: +o fell
06:51:37 *** Cork has joined #gnucash
07:04:45 *** CDB-Man has quit IRC
07:05:16 *** CDB-Man has joined #gnucash
07:05:16 *** ChanServ sets mode: +v CDB-Man
07:10:27 *** FH_thecat has quit IRC
07:21:23 *** Mechtilde has joined #gnucash
07:48:46 *** Aussie_matt has quit IRC
07:49:20 *** Bambuzel has quit IRC
07:50:43 *** CDB-Man has quit IRC
07:50:51 *** CDB-Man has joined #gnucash
07:50:52 *** ChanServ sets mode: +v CDB-Man
08:11:20 *** Mechtilde has quit IRC
08:14:46 *** celeste has quit IRC
08:26:08 *** Mechtilde has joined #gnucash
09:08:20 *** Mechtilde has quit IRC
09:08:42 *** Mechtilde has joined #gnucash
09:11:50 *** Mechtilde has quit IRC
09:12:12 *** Mechtilde has joined #gnucash
09:17:51 *** Mechtilde has quit IRC
09:17:54 *** celeste has joined #gnucash
09:17:54 *** ChanServ sets mode: +v celeste
09:19:24 *** celeste has quit IRC
09:19:51 *** Mechtilde has joined #gnucash
09:20:40 *** celeste has joined #gnucash
09:20:40 *** ChanServ sets mode: +v celeste
09:22:41 *** fell has quit IRC
09:25:49 *** fell has joined #gnucash
09:25:49 *** ChanServ sets mode: +o fell
09:40:21 *** Mechtilde has quit IRC
09:42:59 *** JayC has quit IRC
09:45:02 *** Mechtilde has joined #gnucash
10:11:51 *** Mechtilde has quit IRC
10:35:14 *** Joc has joined #gnucash
10:35:14 *** ChanServ sets mode: +v Joc
10:35:33 *** Mechtilde has joined #gnucash
10:40:21 *** Mechtilde has quit IRC
10:50:02 *** Mechtilde has joined #gnucash
10:53:55 *** Mechtilde has quit IRC
11:03:00 *** celeste has quit IRC
11:03:40 *** celeste has joined #gnucash
11:03:41 *** ChanServ sets mode: +v celeste
11:15:15 *** bertbob has quit IRC
11:17:50 *** Pegasus_RPG has joined #gnucash
11:17:50 *** bertbob has joined #gnucash
11:17:50 *** ChanServ sets mode: +v bertbob
11:21:50 *** celeste has quit IRC
11:22:19 *** celeste has joined #gnucash
11:22:19 *** ChanServ sets mode: +v celeste
11:28:20 *** celeste has quit IRC
11:28:53 *** celeste has joined #gnucash
11:28:53 *** ChanServ sets mode: +v celeste
11:34:53 *** celeste has quit IRC
11:35:59 *** celeste has joined #gnucash
11:35:59 *** ChanServ sets mode: +v celeste
11:45:20 *** guak has joined #gnucash
11:52:08 *** ArtGravity has joined #gnucash
11:52:08 *** ChanServ sets mode: +v ArtGravity
11:52:34 *** Mechtilde has joined #gnucash
12:01:12 *** mikee has quit IRC
12:03:14 *** mikee has joined #gnucash
12:24:04 *** sbluhm has quit IRC
12:26:24 *** sbluhm has joined #gnucash
13:09:55 *** sbluhm has quit IRC
13:15:39 *** fell has quit IRC
13:18:48 *** fell has joined #gnucash
13:18:48 *** ChanServ sets mode: +o fell
13:20:02 *** JayC has joined #gnucash
13:20:02 *** ChanServ sets mode: +v JayC
13:23:59 *** WebFreak has joined #gnucash
13:24:16 *** sbluhm has joined #gnucash
13:25:30 *** WebFreak has quit IRC
13:25:38 *** WebFreak has joined #gnucash
13:27:55 *** ChanServ sets mode: +v WebFreak
13:28:36 *** Joc has quit IRC
13:28:39 <WebFreak> did anything with styling recently change with GnuCash? Suddenly all my accounts are completely white without borders and no longer the alternating green/lime lines
13:37:59 <fell> WebFreak, define recently!
13:38:41 <fell> Update from … to …?
13:40:19 <WebFreak> I think probably around 4.6 -> 4.8 (or from 4.5 even)
13:42:31 <fell> OS?
13:42:35 <WebFreak> linux
13:42:42 <WebFreak> just in general in latest 4.8 version suddenly the accounts all look like this: https://wfr.moe/f6RcF0.png
13:42:51 <fell> distri|flatpak
13:42:56 <WebFreak> archlinux package
13:43:25 <WebFreak> let me just try rolling back actually lol
13:43:44 <fell> I would suspect you lost your settings.
13:43:56 <WebFreak> yeah it happened 4.6 -> 4.8
13:44:08 <WebFreak> downgrading to 4.6 everything looks good again and it reopens the last opened file as usual
13:44:17 <WebFreak> in 4.8 it doesn't open the last opened file anymore and it all looks white like that
13:44:42 <WebFreak> it also doesn't ask me for scheduled transactions anymore I just noticed
13:45:13 <fell> gjanssens should have the details.
13:48:23 <WebFreak> also 4.8 lost the close buttons on my tabs lol
13:48:35 <WebFreak> was gtk upgraded or something?
13:50:07 <fell> The GTK upgrade was from 2.6.x to 3.0
13:50:15 <WebFreak> between 4.6 and 4.8?
13:50:29 <WebFreak> before it certainly didn't look like a GTK 2 app
13:50:40 <fell> The separate close button is also defined in gsettings
13:51:43 <fell> In dconf-editor you should see 2 sets of gnucash settings.
13:53:07 <fell> The new are prefixed by org.gnucash.GnuCash
13:55:26 <WebFreak> ok my patched adwaita was a little outdated, caused some issues with dconf-editor, changed back to the built-in adwaita which fixes dconf-editor, but GnuCash still looks the same all white
13:55:54 <WebFreak> ah yeah I see the 2 different settings in gsettings
13:56:17 <WebFreak> does the app not migrate though or do I need to also have run the 4.7 version?
13:57:01 <fell> It was intended, but that part was incomplete.
14:02:55 <fell> https://wiki.gnucash.org/wiki/Backup#Related_Files, but still outdated
14:03:49 <WebFreak> uh I think I might stay on 4.6 for a while
14:05:43 *** David has quit IRC
14:06:08 *** David has joined #gnucash
14:13:05 <fell> gjanssens, please review https://wiki.gnucash.org/wiki/index.php?title=Backup&type=revision&diff=20331&oldid=19809. Are other OSes affected, too?
14:20:38 <fell> WebFreak, how about soemthng like: dconf dump /org/gnucash/ && dconf reset /org/gnucash/ && dconf load /org/gnucash/GnuCash/
14:20:51 *** kcin has joined #gnucash
14:22:06 <WebFreak> I will try it, but I will likely stay on 4.6 for the other functional issues anyway
14:22:39 <fell> then no dconf reeset …
14:23:00 <WebFreak> well I can restore it with the dump
14:25:19 <WebFreak> nah none of the issues are fixed by the dconf dump+load
14:27:51 <fell> I am not sure if dconf {compile|update} have to applied, too.
14:30:31 <fell> gjanssens, it's not flatpak's pickiness. dconf distinguishes A key path (starting, but not ending with '/') and A directory path (starting and ending with '/')
14:52:10 *** Joc has joined #gnucash
14:52:11 *** ChanServ sets mode: +v Joc
15:10:47 *** sbluhm has quit IRC
15:15:50 *** celeste has quit IRC
15:16:23 *** celeste has joined #gnucash
15:16:23 *** ChanServ sets mode: +v celeste
15:16:50 *** Pegasus_RPG has quit IRC
15:24:48 *** Joc has quit IRC
15:30:00 *** celeste has quit IRC
15:30:11 *** celeste has joined #gnucash
15:30:11 *** ChanServ sets mode: +v celeste
15:52:12 <gjanssens> WebFreak: what are the values of org.gnucash.general/prefs-version and org.gnucash.GnuCash.general/prefs-version ?
15:52:54 <WebFreak> gjanssens: 406
15:53:11 <WebFreak> (in version 4.6)
15:53:26 <gjanssens> Both are the same ? That would be surprising.
15:53:31 <WebFreak> and no org.gnucash.GnuCash.general/prefs-version
15:53:36 <WebFreak> because I downgraded and reset the dconf
15:53:42 <gjanssens> Right
15:54:18 <gjanssens> Normally when you now install gnucash 4.8 it should run a preferences migration. That didn't work on your system for some reason
15:54:31 <WebFreak> I will try it again
15:54:50 <gjanssens> Can you rerun gnucash 4.8 and then post the contents of /tmp/gnucash.trace somewhere ?
15:56:02 <WebFreak> after upgrade dconf read /org/gnucash/GnuCash/general/prefs-version still doesn't print anything
15:56:29 <WebFreak> and this warning hundreds of times in gnucash.trace:
15:56:29 <WebFreak> * 21:55:45 WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general
15:56:30 <WebFreak> * 21:55:45 ERROR <gnc.app-utils> void gnc_gsettings_remove_cb_by_func(const gchar*, const gchar*, gpointer, gpointer): assertion 'G_IS_SETTINGS (settings_ptr)' failed
15:57:46 <WebFreak> full log: https://wfr.moe/f6RlTM.txt
15:58:20 <gjanssens> That means either your gnucash 4.8 package is broken or there's still another, older version of gnucash installed somewhere on your system in the default path (typically /usr or /usr/local)
15:58:40 <WebFreak> I'm using the arch community package
15:58:47 <WebFreak> (4.8-1)
15:58:56 <gjanssens> Where does it install ? In /usr or /usr/local ?
15:59:15 <WebFreak> https://archlinux.org/packages/community/x86_64/gnucash/ - /usr/bin/gnucash, /usr/include/gnucash, etc
15:59:20 <WebFreak> see files list at the bottom
16:00:17 <WebFreak> where are dconf schemas located?
16:00:26 *** warlord has quit IRC
16:00:34 <gjanssens> That's an interesting link.
16:00:48 <gjanssens> Dconf schemas are installed in various places.
16:01:00 *** warlord has joined #gnucash
16:01:12 <gjanssens> The ones from your package will be installed in /usr/share/glib-2.0/schemas/
16:01:25 <gjanssens> And they all start with org.gnucash.GnuCash
16:01:42 <Simon> aha... I have a clue as to why it takes so long to mark a transaction as cleared... the time to do that increases based on the number of open registers
16:02:00 <gjanssens> Do check if there are also files in /usr/local/share/glib-2.0/schemas
16:02:58 <WebFreak> no gnucash related schemas in /usr/local/share/glib-2.0/schemas, the package schems are all there (though looked for org.gnucash.GnuCash.general.xml like in the error message which doesn't exist)
16:03:42 <gjanssens> Are there any files in there that start with org.gnucash only ?
16:03:57 <gjanssens> (without the GnuCash in camelcase in the name) ?
16:04:20 <WebFreak> no
16:04:42 <gjanssens> Ok then we have to return to /usr/share/glib-2.0/shemas
16:04:58 <gjanssens> There's also a file in there named gschemas.compiled
16:05:17 <WebFreak> also if migration didn't work, wouldn't the UI still function properly though? like the alternating green/lime lines in the transaction log
16:05:47 <gjanssens> No, these colors depend on a preference
16:07:08 <gjanssens> What's the output of "strings /usr/share/glib-2.0/schemas/gschemas.compiled | grep '/org/gnucash/GnuCash' | sort"
16:07:25 *** warlord has quit IRC
16:08:05 *** warlord has joined #gnucash
16:08:30 <WebFreak> output: https://wfr.moe/f6RbSE.txt
16:08:40 <WebFreak> for all /org/gnucash strings: https://wfr.moe/f6RAOV.txt
16:09:02 <gjanssens> Good, so the formal schema does exist and is installed properly.
16:09:14 <gjanssens> Which means gnucash is picking up another schema first.
16:10:32 <gjanssens> Let's figure out where that could possibly be
16:10:49 <gjanssens> Can you create a file $HOME/.config/gnucash/config-user.scm
16:10:58 <gjanssens> with these contents:
16:11:06 <gjanssens> (use-modules (gnucash utilities))
16:11:08 <gjanssens> (gnc:warn "XDG__DATA_DIRS=" (getenv "XDG_DATA_DIRS"))
16:11:52 <gjanssens> Then start gnucash and check the first few lines of /tmp/gnucash.trace for a line with XDG_DATA_DIRS
16:11:57 <gjanssens> Please post that line here
16:12:15 <WebFreak> XDG_DATA_DIRS not in the trace file
16:12:46 <WebFreak> also not mentioning it loading the config anywhere
16:13:15 <WebFreak> first lines:
16:13:16 <WebFreak> * 22:11:23 WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general
16:13:16 <WebFreak> * 22:11:23 ERROR <gnc.app-utils> GVariant* gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion 'G_IS_SETTINGS (settings_ptr)' failed
16:14:09 <WebFreak> https://wfr.moe/c6RA0C this is the environment file packaged with the arch pkg
16:14:47 *** warlord has quit IRC
16:15:24 <WebFreak> also here is how they build the gnucash arch pkg: https://github.com/archlinux/svntogit-community/blob/packages/gnucash/trunk/PKGBUILD
16:15:51 <gjanssens> Interesting. What does "ls $HOME/.config/gnucash/config-user.scm" output ?
16:16:31 <WebFreak> -rw-r--r-- 1 webfreak webfreak 89 Oct 18 22:11 /home/webfreak/.config/gnucash/config-user.scm
16:17:11 <gjanssens> Ok, and "cat $HOME/.config/gnucash/config-user.scm"
16:17:48 <WebFreak> https://wfr.moe/f6Rxkc.txt
16:18:16 <gjanssens> Right. Just checking for any typos. I don't see any.
16:18:32 <gjanssens> Is there also a $HOME/.config/gnucash/log.conf ?
16:18:59 <WebFreak> no the config folder is otherwise empty
16:19:27 <WebFreak> whereis gnucash: /usr/bin/gnucash /usr/lib/gnucash /etc/gnucash /usr/include/gnucash /usr/share/gnucash /usr/share/man/man1/gnucash.1.gz
16:20:15 <WebFreak> there is ~/.local/share/gnucash with this layout: https://wfr.moe/f6R2dy.txt
16:20:34 <WebFreak> oh sry wait encoding messed up
16:21:00 <gjanssens> Weird. I don't know why the user's config file isn't parsed
16:21:29 <WebFreak> if you use curl or change firefox to force utf8, it will show up properly, not sending proper content type it seems lol
16:23:27 <gjanssens> Yeah that directory is expected.
16:23:47 <WebFreak> otherwise no gnucash files or folders in my ~/.local folder
16:24:10 <gjanssens> Can you search for file org.gnucash.general.gschema.xml ?
16:24:25 <gjanssens> So without the camelcased GnuCash in there.
16:24:59 <WebFreak> indexed search (mlocate.db) didn't find it on my system, could run a full search though it will take a while
16:25:47 *** warlord has joined #gnucash
16:28:02 <gjanssens> Do you have environment variables XDG_DATA_HOME or XDG_CONFIG_HOME set ? If so to what value ?
16:28:08 <WebFreak> did not find that file in /usr, /etc, /var or $HOME - should I search other paths?
16:28:18 <WebFreak> both unset
16:28:28 <gjanssens> And XDG_DATA_DIRS ?
16:28:34 <WebFreak> unset
16:31:37 *** ChanServ sets mode: +qo warlord warlord
16:31:52 <WebFreak> btw, I want to make a small app to more quickly add some common transactions, would you recommend using some gnucash library or program or directly modifying the xml file?
16:32:30 <gjanssens> I would recommend the python bindings rather than directly modifying the xml file.
16:33:15 <gjanssens> Another set of commands to try: "gsettings --list-keys org.gnucash.general" and "gsettings --list-keys org.gnucash.GnuCash.general"
16:33:55 <WebFreak> first one: https://wfr.moe/f6RSLe.txt
16:34:10 <WebFreak> second one: https://wfr.moe/f6RSho.txt
16:34:55 <WebFreak> first with values: https://wfr.moe/f6RWFT.txt
16:35:09 <WebFreak> second with values: https://wfr.moe/f6RsZd.txt
16:35:11 <gjanssens> Ok, so it's clearly something in the gnucash configuration only. gsettings is the underlying mechanism for our preferences and accessing it directly works fine.
16:36:46 <gjanssens> Have you checked /tmp/gnucash.trace for XDG_DATA_DIRS further down the file or only at the beginning ?
16:37:21 <WebFreak> searched it completely
16:37:38 <WebFreak> here is full log again: https://wfr.moe/f6Rsqp
16:37:46 <WebFreak> oh wait wrong mime type
16:37:59 <WebFreak> as txt: https://wfr.moe/f6RB32.txt
16:38:23 <WebFreak> oh wait it's there as XDG__DATA_DIRS
16:38:44 <WebFreak> lol sry was there the whole time then
16:39:07 <WebFreak> it's "#f"
16:39:37 <gjanssens> I see. And it's false. Perhaps that's why this isn't working
16:40:21 <WebFreak> freedesktop specifies: If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.
16:40:38 <WebFreak> would expect gtk to implement that
16:40:44 <gjanssens> Can you set XDG_DATA_DIRS to "/usr/local/share:/usr/share" and then run gnucash ?
16:41:58 <WebFreak> issues still present
16:42:04 <gjanssens> I would also expect gtk to implement that.
16:42:06 <WebFreak> trace file shows expected output
16:42:11 <WebFreak> (so showing my value)
16:42:14 *** celeste has quit IRC
16:42:31 <gjanssens> This is really weird.
16:43:00 *** celeste has joined #gnucash
16:43:00 *** ChanServ sets mode: +v celeste
16:43:03 <WebFreak> will it try a migration if I reset the dconf /org/gnucash path completely?
16:43:55 <WebFreak> well that didn't do anything
16:47:42 <gjanssens> No it wouldn't. If it's completely reset gnucash assumes it has never run before and won't do anything
16:47:50 <gjanssens> As you found out :)
16:48:14 <WebFreak> I made a test file and ran with gnc=debug log if this helps: https://wfr.moe/f6R3WO.txt
16:52:01 *** celeste has quit IRC
16:53:01 <gjanssens> What's the output of this: strace -e openat gnucash |& grep gschemas.compiled
16:54:27 <WebFreak> openat(AT_FDCWD, "/usr/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = 11
16:54:27 <WebFreak> openat(AT_FDCWD, "/usr/local/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = 11
16:54:27 <WebFreak> openat(AT_FDCWD, "/home/webfreak/.local/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
16:54:50 <WebFreak> the /usr/local/share/glib-2.0/schemas/gschemas.compiled only contains a single entry (for org.gnome.siglo)
17:02:21 <gjanssens> I have no clue at this point and it's getting late here...
17:02:34 <WebFreak> same lol
17:02:44 <WebFreak> well 4.6 still works great, gonna keep using that for a while
17:03:18 <gjanssens> Last shot in the dark: sudo glib-compile-schemas /usr/share/glib-2.0/schemas
17:03:43 <gjanssens> And then start gnucash again
17:03:57 <WebFreak> hey that fixed it! ... is what I would like to say but sadly this is not the solution :p
17:04:23 <gjanssens> If that doesn't work, please file this as a bug and refer to this conversation.
17:04:37 <WebFreak> well still thanks for the guidance with this! GnuCash 4.6 works great for me, not sure if I even need any updates right now really
17:04:57 <WebFreak> I will ask on the archlinux forums first, might be some packaging issue
17:05:02 <gjanssens> Thanks for running all the test as well
17:10:21 *** celeste has joined #gnucash
17:10:22 *** ChanServ sets mode: +v celeste
17:11:04 *** Mechtilde has quit IRC
17:12:03 <WebFreak> gjanssens: ok definitely a packaging issue, just built from source and it works
17:12:07 <WebFreak> should have tried that from the start lol
17:14:57 <gjanssens> Whew, that's at least something
17:17:27 <WebFreak> ok sorry for wasting over an hour xD
17:19:25 <gjanssens> Np
17:20:51 <WebFreak> oh cool I just found out that when I install libdbi I can connect mysql and postgres databases
17:21:33 *** User has quit IRC
17:22:40 <WebFreak> might go for that instead of using python bindings to manipulate transactions lol
17:27:47 *** kcin has quit IRC
17:33:08 <fell> WebFreak: Its always better to use the python bindings than undocumented manipulation in one backend!
17:33:18 <WebFreak> but I don't want to use python! :p
17:34:30 *** gjanssens has quit IRC
17:35:11 <fell> There are nice samples: https://code.gnucash.org/docs/MAINT/group__python__bindings__examples.html
17:36:07 <WebFreak> yeah ok maybe I can start with spawning python processes and later add the proper C API I guess lol
17:38:03 <WebFreak> it said somewhere the bindings are SWIG generated? Could maybe just add other languages
17:38:37 *** David has quit IRC
17:38:56 *** David has joined #gnucash
17:40:54 <WebFreak> ok sleep time, gn
17:41:04 *** WebFreak has quit IRC
17:44:00 *** Pegasus_RPG has joined #gnucash
17:53:54 *** Joc has joined #gnucash
17:53:54 *** ChanServ sets mode: +v Joc
18:15:45 <fell> warlord, I got no notification to create wiki user account Gunter. Before, for Fserrador I got a half dozen.
19:10:59 *** Joc has quit IRC
19:13:23 <warlord> fell, I got 1/2 dozen as well -- I think they signed up 6 times. When did Gunter attempt it?
19:15:21 <fell> I got informed by https://lists.gnucash.org/pipermail/gnucash-de/2021-October/012234.html
19:16:35 <fell> I assume short before the mail
19:17:14 <warlord> Huh. When was his wiki account created?
19:18:07 <fell> I confirmed it 16:27+2
19:18:35 <warlord> When did he register?
19:19:48 *** celeste has quit IRC
19:24:56 <warlord> I see two entries referencing their email address in the past week, both today, one at 12:06 EDT, and another at 12:27 EDT.
19:25:10 <warlord> So most likely you processed it before it had a chance to send out an email.
19:25:30 <fell> are they delayed?
19:28:19 <warlord> No, I don't see any.