Problem debugging gschema update

Hello. I’ve been maintaining an ibus engine for a while now.

Recently we’ve decided to update the .gschema.xml file to add new boolean key. I’ve been doing some back-and-forth for a while. And today after reinstalling the updated schema, my python-based ibus engine fails with this error accessing the new key:

(process:9389): GLib-GIO-ERROR **: 22:20:03.908: Settings schema ‘org.something.myapp’ does not contain a key named ‘my-new-key’

I tried recompile the schema a few times already. I’ve even tried reboot.

The actual schema doesn’t trigger any syntax error on recompile command:

/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

if I use the command line tool gsettings to list it:

gsettings list-recursively org.something.myapp

all the old keys exists but the newly added key.

Please help and advice how may I try to look for the issue here?

Do you maybe have some older version of the .gschema.xml installed in /usr/local/share/glib-2.0/schemas or somewhere in your home?

Thanks!

I previously installed my application to /usr/local. Although I removed all my source file (include .gschema.xml files), but a compiled file /usr/local/share/glib-2.0/schemas/gschemas.compiled was still sneaking there and caused the chaos.

I remove the .compiled file and now everything works!

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.