rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=7f6e321bef84aa76197f82818569e23888a8acc7

commit 7f6e321bef84aa76197f82818569e23888a8acc7
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Oct 29 13:45:01 2015 +0200

    config: use projects_folder as default location in all fileselectors
---
 src/bin/ui/popup.c         | 2 +-
 src/bin/ui/tab_home_open.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/popup.c b/src/bin/ui/popup.c
index db7df25..c6215b8 100644
--- a/src/bin/ui/popup.c
+++ b/src/bin/ui/popup.c
@@ -230,7 +230,7 @@ _fileselector_helper(const char *title,
      }
    else elm_fileselector_folder_only_set(fs, true);
 
-   elm_fileselector_path_set(fs, path ? path : getenv("HOME"));
+   elm_fileselector_path_set(fs, path ? path : 
profile_get()->general.projects_folder);
    evas_object_smart_callback_add(fs, "done", _done, NULL);
    evas_object_smart_callback_add(fs, "activated", _done, NULL);
    /* small hack, hide not necessary button */
diff --git a/src/bin/ui/tab_home_open.c b/src/bin/ui/tab_home_open.c
index 6e27c8d..6452dcf 100644
--- a/src/bin/ui/tab_home_open.c
+++ b/src/bin/ui/tab_home_open.c
@@ -120,7 +120,7 @@ _tab_open_project_add(void)
 
    tab.fs = elm_fileselector_add(ap.win);
    elm_fileselector_expandable_set(tab.fs, false);
-   elm_fileselector_path_set(tab.fs, getenv("HOME"));
+   elm_fileselector_path_set(tab.fs, profile_get()->general.projects_folder);
    elm_fileselector_custom_filter_append(tab.fs, _eflete_filter, NULL, "Eflete 
Files");
    evas_object_smart_callback_add(tab.fs, "done", _open, NULL);
    evas_object_smart_callback_add(tab.fs, "activated", _open, NULL);

-- 


Reply via email to