hermet pushed a commit to branch master.

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

commit de5139f31c75aa9fbb06e3a18e2d0cd6c65b2dd8
Author: ChunEon Park <[email protected]>
Date:   Tue Feb 18 11:47:09 2014 +0900

    config - place the enventor config foler in the XDG Config Home directory.
---
 README                | 1 +
 src/bin/config_data.c | 8 +++++---
 src/bin/main.c        | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/README b/README
index 5cfa72e..43cccee 100644
--- a/README
+++ b/README
@@ -15,6 +15,7 @@ it does a lot.
   ecore (>= 1.8.0)
   edje (>= 1.8.0)
   eio (>= 1.8.0)
+  efreet (>= 1.8.0)
   elementary (>= 1.8.0)
   
 Please note that some features may not quite function correctly or completely 
on
diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index 8c6f5c4..4704f17 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -67,7 +67,8 @@ static Eina_Bool
 config_load(config_data *cd)
 {
    char buf[PATH_MAX];
-   snprintf(buf, sizeof(buf), "%s/.enventor/config.eet", getenv("HOME"));
+   snprintf(buf, sizeof(buf), "%s/enventor/config.eet",
+            efreet_config_home_get());
    Eet_File *ef = eet_open(buf, EET_FILE_MODE_READ);
    if (!ef)
       {
@@ -129,7 +130,7 @@ static void
 config_save(config_data *cd)
 {
    char buf[PATH_MAX];
-   snprintf(buf, sizeof(buf), "%s/.enventor", getenv("HOME"));
+   snprintf(buf, sizeof(buf), "%s/enventor", efreet_config_home_get());
 
    //Create config folder if it doesn't exist.
    if (!ecore_file_exists(buf))
@@ -143,7 +144,8 @@ config_save(config_data *cd)
      }
 
    //Save config file.
-   snprintf(buf, sizeof(buf), "%s/.enventor/config.eet", getenv("HOME"));
+   snprintf(buf, sizeof(buf), "%s/enventor/config.eet",
+            efreet_config_home_get());
    Eet_File *ef = eet_open(buf, EET_FILE_MODE_WRITE);
    if (!ef)
      {
diff --git a/src/bin/main.c b/src/bin/main.c
index 0b1fd50..38798cd 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -482,6 +482,7 @@ config_data_set(app_data *ad, int argc, char **argv)
 static void
 elm_setup()
 {
+   elm_need_efreet();
    elm_config_profile_set("standard");
 
    /* Recover the scale & theme since it will be reset by

-- 


Reply via email to