[Pkg-e-commits] [SCM] Enlightenment 17 branch, upstream-vcs, updated. a8698069ec4eec9c2a189198fa5eec9854b168ac

raster raster at alioth.debian.org
Sun May 4 21:40:02 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit 0a6d921967daf96ee62213ade71909a9136d2436
Author: raster <raster>
Date:   Mon Mar 31 15:49:19 2008 +0000

    patch from zecke to support a perliminary hacky system config... :)

diff --git a/src/bin/e_config.c b/src/bin/e_config.c
index 93e125d..cc1a060 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1827,7 +1827,22 @@ e_config_domain_load(const char *domain, E_Config_DD *edd)
      {
 	data = eet_data_read(ef, edd, "config");
 	eet_close(ef);
+        return data;
      }
+
+   /* fallback to a system directory
+    * FIXME proper $PATH like handling might be wanted
+    */ 
+   snprintf(buf, sizeof(buf), "%s/data/config/%s/%s.cfg",
+	    e_prefix_data_get(), _e_config_profile, domain);
+   ef = eet_open(buf, EET_FILE_MODE_READ);
+   if (ef)
+     {
+	data = eet_data_read(ef, edd, "config");
+	eet_close(ef);
+        return data;
+     }
+
    return data;
 }
 

-- 
Enlightenment 17



More information about the Pkg-e-commits mailing list