rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=2f239c23bf12ddeb88e6d9a6886b7ee32b37f732
commit 2f239c23bf12ddeb88e6d9a6886b7ee32b37f732 Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Fri Nov 13 11:20:25 2015 +0000 Config: fix set projects dir path. In case if projects dir does not exists - all files sectors will be displayed with the NULL path. In this commit added additional check the directory exist. @fix --- src/bin/config/config.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bin/config/config.c b/src/bin/config/config.c index 3e0bb68..bd2e950 100644 --- a/src/bin/config/config.c +++ b/src/bin/config/config.c @@ -335,10 +335,13 @@ _profile_update(Profile *prof) char *env_path = getenv("EFLETE_PROJECTS_DIR"); prof->version = PROFILE_VERSION; - if ((!prof->general.projects_folder) || (env_path)) - prof->general.projects_folder = env_path != NULL ? - strdup(env_path): - strdup(getenv("HOME")); + if ((!env_path) || (!ecore_file_exists(env_path))) + env_path = getenv("HOME"); + + if ((!prof->general.projects_folder) || + (!ecore_file_exists(prof->general.projects_folder))) + prof->general.projects_folder = strdup(env_path); + if (!prof->shortcuts) prof->shortcuts = _default_shortcuts_get(); } --