Skip to content

Instantly share code, notes, and snippets.

@plembo
Last active August 5, 2018 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plembo/4f93ef3c3469557353f438b58c582e0f to your computer and use it in GitHub Desktop.
Save plembo/4f93ef3c3469557353f438b58c582e0f to your computer and use it in GitHub Desktop.
Missing glib schema causing psensor crash

Missing glib schema causing psensor crash

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:

https://www.linuxquestions.org/questions/slackware-14/gucharmap-12280-glib-gio-error-%2A%2A-settings-schema-%27org-gnome-charmap%27-is-not-inst-4175439603/

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment