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 586532 - gconf_client_get_entry fails when using GCONF_CLIENT_PRELOAD_ONELEVEL
gconf_client_get_entry fails when using GCONF_CLIENT_PRELOAD_ONELEVEL
Status: RESOLVED WONTFIX
Product: GConf
Classification: Deprecated
Component: gconf
2.26.x
Other All
: Normal normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-06-21 14:18 UTC by John Spray
Modified: 2018-08-17 13:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description John Spray 2009-06-21 14:18:46 UTC
Please describe the problem:

Regression between 2.26.0->2.26.2.

When getting an entry for a key which does not exist, if the containing directory has been added to the Client with the "PRELOAD_ONELEVEL" option then the entry is not created correctly.

Steps to reproduce:


#include <gconf/gconf-client.h>

int
main (int argc, char** argv)
{
  GConfClient *client;
  
  client = gconf_client_get_default ();

  // Change PRELOAD_ONELEVEL to PRELOAD_NONE to restore correct behaviour.
  gconf_client_add_dir (client, "/whatever", GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);


  GConfEntry *entry = gconf_client_get_entry (client, "/whatever/rhubarb", "C", FALSE, NULL);
  // In gconf 2.26.0 this always prints the key name
  printf ("entry key = %s\n", gconf_entry_get_key (entry));

  g_object_unref (G_OBJECT (client));
  
  return 0;
}



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 André Klapper 2018-08-17 13:59:55 UTC
GConf has been deprecated since 2011.

GConf is not under active development anymore. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gconf/commits/master

dconf and gsettings are its successors. See https://developer.gnome.org/gio/stable/ch34.html and https://developer.gnome.org/GSettings/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of dconf/gsettings. Thanks!