--- GConf-2.28.0/gconf/gconfd.c-orig	2010-04-27 14:51:32.274141261 -0500
+++ GConf-2.28.0/gconf/gconfd.c	2010-04-27 15:02:08.663176405 -0500
@@ -2203,8 +2203,13 @@ listener_logentry_restore_and_destroy_fo
 {
   ListenerLogEntry *lle = key;
   GConfDatabase *db = NULL;
+  gboolean use_default = TRUE;
   
-  if (strcmp (lle->address, "def") == 0)
+  if (g_getenv ("GCONF_DISABLE_DEFAULT")) {
+    use_default = FALSE;
+  }
+
+  if (use_default && strcmp (lle->address, "def") == 0)
     db = default_db;
   else
     {
@@ -2379,6 +2384,11 @@ gconfd_logfile_change_listener (GConfDat
   gchar *quoted_db_name;
   gchar *quoted_where;
   gchar *quoted_ior;
+  gboolean use_default = TRUE;
+  
+  if (g_getenv ("GCONF_DISABLE_DEFAULT")) {
+    use_default = FALSE;
+  }
   
   if (!open_append_handle (err))
     return FALSE;
@@ -2392,7 +2402,7 @@ gconfd_logfile_change_listener (GConfDat
   g_free (ior);
   ior = NULL;
   
-  if (db == default_db)
+  if (use_default && db == default_db)
     quoted_db_name = gconf_quote_string ("def");
   else
     {
