After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151334 - Can't access defaults value after install
Can't access defaults value after install
Status: RESOLVED FIXED
Product: GConf
Classification: Deprecated
Component: Markup backend
unspecified
Other Linux
: High normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
: 151335 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-08-29 10:29 UTC by Nickolay V. Shmyrev
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Nickolay V. Shmyrev 2004-08-29 10:29:15 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.
Comment 1 Sebastien Bacher 2004-08-29 10:43:58 UTC
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
Comment 2 Nickolay V. Shmyrev 2004-08-29 10:47:39 UTC
Well, application to test is CSBoard 
 
http://nshmyrev.narod.ru/csboard-0.4.tar.gz 
 
Comment 3 Mike McCabe 2004-08-29 16:54:35 UTC
*** Bug 151335 has been marked as a duplicate of this bug. ***
Comment 4 Mark McLoughlin 2004-08-30 07:37:52 UTC
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.

Comment 5 Nickolay V. Shmyrev 2004-08-30 17:07:48 UTC
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.