GNOME Bugzilla – Bug 151334
Can't access defaults value after install
Last modified: 2004-12-22 21:47:04 UTC
Hello, I am install schema file as root with gconftool-2 --makefile-install-rule. Just after that I run gconftool-2 --get /apps/application/key and gconftool tells me that there is no such key. Expected results - it will show me default value as described in schema. I've managed to run gconftool-2 --shutdown in order to make things work. The problem is hidden is markup backend in markup-tree.c. There is function load_dir which has cache - key "subdirs_loaded". This key doesn't updated after schema install. As a result application crashes, since it can't get default values.
The 2.7 branch reloads the base on a SIGHUP signal, but this code has a problem for the moment and breaks the listeners: http://bugzilla.gnome.org/show_bug.cgi?id=148028
Well, application to test is CSBoard http://nshmyrev.narod.ru/csboard-0.4.tar.gz
*** Bug 151335 has been marked as a duplicate of this bug. ***
Thanks, fixed in CVS now: 2004-08-30 Mark McLoughlin <mark@skynet.ie> Fix problem with schemas install. Bug #151334. * gconf/gconftool.c: (process_locale_info): install the global default in the C locale only.
The last comment (#4) doesn't related to this bug. Here is part of new documentation: Since the daemon caches values it may not notice when new schemas are installed from "make install" or an RPM/deb package. However, it is\ possible to notify the daemon to re-load its caches by sending it a SIGHUP signal. So we should include killall -s HUP gconfd-2 in our makefiles after installation of schemas. Note that you'll need GCONF >= 2.7.3 to do this. Thanks to all.