hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=c5ccf94fea0dd7d81b0975bf0e75c8efe3157ade

commit c5ccf94fea0dd7d81b0975bf0e75c8efe3157ade
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Tue Aug 25 16:24:32 2015 +0900

    config_data: create config home folder if it doesn't exist.
    
    previously, user home config folder was not existed,
    enventor config file won't be saved.
    
    now, it's fixed.
    
    @fix
---
 src/bin/config_data.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index 5acd934..1819c30 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -75,9 +75,21 @@ static void
 config_save(config_data *cd)
 {
    char buf[PATH_MAX];
+
+   //Create config home directory if it doesn't exist.
+   if (!ecore_file_exists(efreet_config_home_get()))
+     {
+        Eina_Bool success = ecore_file_mkdir(efreet_config_home_get());
+        if (!success)
+          {
+             EINA_LOG_ERR("Cannot create a config folder \"%s\"", 
efreet_config_home_get());
+             return;
+          }
+     }
+
    snprintf(buf, sizeof(buf), "%s/enventor", efreet_config_home_get());
 
-   //Create config folder if it doesn't exist.
+   //Create enventor config folder if it doesn't exist.
    if (!ecore_file_exists(buf))
      {
         Eina_Bool success = ecore_file_mkdir(buf);

-- 


Reply via email to