From 1fdc4f567e36bae47f0d87878894b2e6760f4a28 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 31 Mar 2008 15:49:19 +0000 Subject: [PATCH] patch from zecke to support a perliminary hacky system config... :) SVN revision: 34156 --- src/bin/e_config.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 93e125ded..cc1a06000 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; }