- continue to load even if the system.eet file dosen't exist. This file

isn't strictly necessary and we can continue without it.


SVN revision: 12377
This commit is contained in:
Dan Sinclair 2004-12-06 21:15:29 +00:00 committed by Dan Sinclair
parent e5b3effc54
commit a81ffaded4
1 changed files with 6 additions and 3 deletions

View File

@ -1569,9 +1569,12 @@ _ecore_config_system_load(void)
if ((buf = malloc(PATH_MAX * sizeof(char))))
{
snprintf(buf, PATH_MAX, "%s/.e/config.eet", p);
if (ecore_config_file_load(buf) != 0)
if (ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet") != 0)
return ECORE_CONFIG_ERR_NOFILE;
if (ecore_config_file_load(buf) != 0) {
/* even if this file (system.eet) dosen't exist we can
* continue without it as it isn't striclty necessary.
*/
ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet");
}
sys = __ecore_config_bundle_local->data;
while (sys)
{