[GNC-dev] Trouble with gsettings in GC 4.9

davidcousens49 at gmail.com davidcousens49 at gmail.com
Mon Dec 27 18:10:48 EST 2021


Christian,

Not sure what the problem is but you could try using David Whitings script for
installation on Ubuntu 20.04 which is now in the wiki at  
https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS. It works
well with the only disadvantage it downloads a copy of the whole git repository
and not just the specific source files for a single version, OK if you don't
have any serious space issues.

The following commands from the script will do the setup for builing and install
the dependencies:

sudo apt -y update
sudo apt -y upgrade
sudo apt -y install git
sudo apt -y build-dep gnucash

## To build series 4 of gnucash on Ubuntu 20.04
sudo apt -y install libboost-program-options1.71-dev

If you still want to work from the downloaded zip file of the sources just run
these first to make sure all the dependencies are loaded. I would try a fresh
download of the zipped file from Sourceforge as well. There was a patch to the
4.8 sources that affected the gsettings schemas from memory but AFAIK it was
incorporated in the 4.9 sources.

If you run the following command ( I have also listed the output from it on
Linux MInt 20.2 which should be the same as Ubuntu 20.04) you will list the
packages affecting gsettings.

dpkg -l | grep gsettings

ii  dconf-gsettings-backend:amd64                               0.36.0-
1                                    amd64        simple configuration storage
system - GSettings back-end
ii  gsettings-desktop-schemas                                   3.36.0-
1ubuntu1                             all          GSettings desktop-wide schemas
ii  libproxy1-plugin-gsettings:amd64                            0.4.15-
10ubuntu1.2                          amd64        automatic proxy configuration
management library (GSettings plugin).

It is ususlly a good idea on Linux to unistall the previous version befor
installing a new version. On Linux Mint (not sure Ubuntu is exactly the same but
I think it should be) if you right click on the icon in the menu you should get
a dropdown menu with uninstall as one of the options. It may require you to keep
the build directory which has the install_manifest.text used to do the
uninstall.

David Cousens

On Mon, 2021-12-27 at 16:57 +0000, Christian Wehling wrote:
> Hi,
> I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net and 
> have trouble with the "glib-schemas".
> The installation seemed to run without errors, but when I start Gnucash
> I get these outputs:
> [...]
> * 16:48:51  INFO <gnc.gui            > [gnc_load_app_icons] Path 14:
> /usr/local/share/gnucash/icons
> * 16:48:51  INFO <gnc.gui            > [gnc_load_app_icons] Path 15:
> /usr/local/share/icons
> * 16:48:51 ERROR <GLib-GIO           > g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:48:51  WARN <gnc.app-utils.gsett>
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:48:51 ERROR <gnc.app-utils      > GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> [... and so on]
> 
> If I run:
> glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> /usr/local/share/glib-
> 2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> Zeile 3, Zeichen 1: <schema id='org.gnucash.dialogs.business'> wurde
> bereits angegeben.  --strict was specified; exiting.
> 
> 
> I had installed version 4.7 in the same way and it worked fine.
> 
> What can I do?
> 
> Christian
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list