After installing psensor on my Lenovo T430 laptop running Ubuntu 18.04, I got this error when trying to run it:
GLib-GIO-ERROR **: 16:41:25.686: Settings schema 'psensor' is not installed
The fix for this was to regenerate the glib 2.0 schemas by running the following command as root:
glib-compile-schemas /usr/share/glib-2.0/schemas
Solution was found after searching around and finding the following thread relating the failure of a different program due to a missing glib schema it was dependent on:
As explained in the thread, many packages regenerate the glib schemas during installation to ensure that any dependencies exist, but in some cases a package or the installation process fails to do this. Prior to following the advice in the thread I did uninstall and then reinstall the psensor package, but continued to get the error. Once I ran the glib-compile-schemas command, psensor worked as required.