GNOME Bugzilla – Bug 586532
gconf_client_get_entry fails when using GCONF_CLIENT_PRELOAD_ONELEVEL
Last modified: 2018-08-17 13:59:55 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:
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!