[gnome-sdk-images] Add dconf override patch



commit 778db637fcc5ad1fafc6409deb1d3d026a7c10b7
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 10 19:07:49 2016 +0100

    Add dconf override patch

 dconf-override.patch |   23 +++++++++++++++++++++++
 org.gnome.Sdk.json   |    4 ++++
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/dconf-override.patch b/dconf-override.patch
new file mode 100644
index 0000000..0355658
--- /dev/null
+++ b/dconf-override.patch
@@ -0,0 +1,23 @@
+diff --git a/engine/dconf-engine-source-user.c b/engine/dconf-engine-source-user.c
+index 1657875..e4f8786 100644
+--- a/engine/dconf-engine-source-user.c
++++ b/engine/dconf-engine-source-user.c
+@@ -39,11 +39,17 @@ dconf_engine_source_user_open_gvdb (const gchar *name)
+ {
+   GvdbTable *table;
+   gchar *filename;
++  const gchar *override;
++
++  override = g_getenv ("DCONF_USER_CONFIG_DIR");
++  if (override == NULL)
++    filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
++  else
++    filename = g_build_filename (g_get_home_dir (), override, NULL);
+ 
+   /* This can fail in the normal case of the user not having any
+    * settings.  That's OK and it shouldn't be considered as an error.
+    */
+-  filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
+   table = gvdb_table_new (filename, FALSE, NULL);
+   g_free (filename);
+ 
diff --git a/org.gnome.Sdk.json b/org.gnome.Sdk.json
index ece5108..ef11188 100644
--- a/org.gnome.Sdk.json
+++ b/org.gnome.Sdk.json
@@ -158,6 +158,10 @@
                 {
                     "type": "git",
                     "url": "git://git.gnome.org/dconf"
+                },
+                {
+                    "type": "patch",
+                    "path": "dconf-override.patch"
                 }
             ]
         },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]