[GNC] Settings not respected
Geert Janssens
geert.gnucash at kobaltwit.be
Tue Dec 27 10:21:24 EST 2022
Op dinsdag 27 december 2022 14:27:33 CET schreef Jeff:
> On 27/12/2022 13:30, Geert Janssens wrote:
>
> > I'm not sure what the typical paths on Debian are, but on Fedora the
> > schemas for system packages end up in
> >
> > /usr/share/glib-2.0/schemas/
> >
> > While locally built schemas typically end up in
> >
> > /usr/local/share/glib-2.0/schemas/
> >
> >
> > If there are schema files in both locations (not necessarily gnucash
> > related), a gnucash installed from a deb package will not find its
> > schema files in the former location and hence settings will not work.
>
>
> The first path has lots of xml-files and a few others.
>
Can you post the output of
cd /usr/share/glib-2.0/schemas
stat -c'%w %n' org.gnucash.* gschemas.compiled
> The second path does not exist.
>
> echo $XDG_DATA_DIRS
>
> gives:
>
> /usr/share/gnome:/usr/local/share/:/usr/share/
>
GnuCash can manipulate the contents of XDG_DATA_DIRS at startup. To figure out the exact
value GnuCash sees, you can create a
file named "config-user.scm" in $HOME/.config/gnucash
with this contents:
(use-modules (gnucash utilities))
(gnc:warn "XDG_DATA_DIRS=" (getenv "XDG_DATA_DIRS"))
The next time you start gnucash it will print the value of XDG_DATA_DIRS in the
gnucash.trace file somewhere. Can you look for this and check whether there's another
directory on the path that has a non-empty glib-2.0/schemas subdirectory ?
> But there isn't a glib-2.0 directory in /usr/share/gnome, either.
>
Considering both dconf-editor and the gsettings command line tool show the proper value,
to me this is still most likely a variation of
https://bugs.gnucash.org/show_bug.cgi?id=798672[1]
If there's no clear hint in the above, can you post the full gnucash.trace contents here, or at
least up until the first gsettings schema error you get ?
Is there a way to get gnucash 4.13 installed on your system (and not via flatpak ?) That would
be another useful test.
Regards,
Geert
--------
[1] https://bugs.gnucash.org/show_bug.cgi?id=798672
More information about the gnucash-user
mailing list