Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_config.c
Log Message:
patch from zecke to support a perliminary hacky system config... :)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.282
retrieving revision 1.283
diff -u -3 -r1.282 -r1.283
--- e_config.c 20 Feb 2008 04:12:58 -0000 1.282
+++ e_config.c 31 Mar 2008 15:49:19 -0000 1.283
@@ -1827,7 +1827,22 @@
{
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;
}
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs