[GNC] Settings problem after update to 3.3 on Ubuntu - missing keys
Geert Janssens
geert.gnucash at kobaltwit.be
Thu Oct 25 10:35:43 EDT 2018
Odd indeed. I'm not sure what to suggest further.
Did you get any warnings when running that command ? Does it produce errors if
you add --strict ?
Geert
Op donderdag 25 oktober 2018 15:36:48 CEST schreef Colin Law:
> Hi Geert
>
> I ran
> sudo glib-compile-schemas /usr/share/glib-2.0/schemas
> and could see that it updated /usr/share/glib-2.0/schemasg/schemas.compiled.
> I checked XDG_DATA_DIRS and that does include /usr/share.
> I rebooted just in case.
> Yet still the settings are not found by gnucash and when I run dconf-editor
> then again they are not there. I have checked with a system with working
> GC 3.3 to make sure I am looking in the right place in dconf-editor.
> I have looked in /usr/share/glib-2.0/schemas/org.gnucash.gschema.xml and
> can see that the key definitions are there.
>
> Very strange.
>
> Colin
>
> On Thu, 25 Oct 2018 at 10:43, Geert Janssens <geert.gnucash at kobaltwit.be>
>
> wrote:
> > Hi Colin,
> >
> > These keys do exist on my locally built gnucash (I do have to set
> > XDG_DATA_DIRS to find them though, but that should only be necessary if
> > the
> > package is not installed in the default /usr or /usr/local).
> >
> > The 3.3 package installation on Ubuntu may not be properly updating the
> > gsettings schema for gnucash.
> >
> > You may try to fix this yourself by running this command:
> > sudo glib-compile-schemas /usr/share/glib-2.0/schemas
> >
> > If that fixes the errors, it suggests a packaging bug. That command should
> > be
> > run in the post-install phase by the package manager. I have no idea
> > though
> > exactly how this should be implemented in a deb package.
> >
> > Regards,
> >
> > Geert
> >
> > Op woensdag 24 oktober 2018 22:50:44 CEST schreef Colin Law:
> > > I have updated a system from Ubuntu 18.04 to 18.10 and gnucash has been
> > > automatically updated from version 2.6.19 to 3.3 from the Ubuntu
> >
> > repository.
> >
> > > I noticed that I was not getting the alternating colours in the
> > > registers
> > > and when I went to Preferences > Register I can see that 'Use GnuCash
> >
> > built
> >
> > > in color theme' is not checked. If I check it, exit preferences and
> > > then
> > > go back in again I can see that the preference has not been saved. Some
> > > options do get saved however, Auto-raise lists for example.
> > >
> > > On looking in gnucash.trace I see a lot of errors like
> > > * 21:33:32 CRIT <gnc.app-utils.gsettings> [gnc_gsettings_get_int()]
> > > Invalid key prefs-version for schema general
> > > * 21:33:32 CRIT <gnc.app-utils.gsettings> [gnc_gsettings_set_bool()]
> > > Invalid key use-gnucash-color-theme for schema general.register
> > > * 21:33:32 CRIT <gnc.app-utils.gsettings> [gnc_gsettings_set_int()]
> > > Invalid key prefs-version for schema general
> > > * 21:33:46 CRIT <gnc.app-utils.gsettings> [gnc_gsettings_get_bool()]
> > > Invalid key grid-lines-horizontal for schema general
> > >
> > > and if I run dconf-editor I can see that those keys are missing. Would
> > > I
> > > be right in surmising that these are new keys that were not present in
> > > 2.6.19? Is this a bug in gnucash in that it has not created those keys
> > > automatically, or should the act of updating the package have added the
> >
> > new
> >
> > > keys, or something else?
> > >
> > > What is the best way to recover from this? I do have another machine
> >
> > with
> >
> > > a new install of 3.3 so I could use
> > > dconf dump /org/gnucash
> > > on that machine and then dconf load to load it onto the failing one.
> > >
> > > Colin
> > > _______________________________________________
> > > gnucash-user mailing list
> > > gnucash-user at gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > If you are using Nabble or Gmane, please see
> > > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. -----
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user
mailing list