use the created system file if one is not defined (modifications will cause it to get saved to ~/.e/config.db)

SVN revision: 8762
This commit is contained in:
handyande 2004-02-01 23:54:08 +00:00 committed by handyande
parent 8783ce6d8f
commit 2d72dd7b1a
1 changed files with 2 additions and 1 deletions

View File

@ -607,7 +607,8 @@ int ecore_config_init(char *name) {
if ((buf=malloc(PATH_MAX*sizeof(char)))) {
snprintf(buf,PATH_MAX,"%s/.e/config.db",p);
if (ecore_config_load_file(buf) != 0)
return ECORE_CONFIG_ERR_NOFILE;
if (ecore_config_load_file(PACKAGE_DATA_DIR "/system.db") != 0)
return ECORE_CONFIG_ERR_NOFILE;
}
free(buf);
}