jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fb57bc0106d7719fd36de2a597e2bbcf582f5e82

commit fb57bc0106d7719fd36de2a597e2bbcf582f5e82
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Aug 18 15:50:24 2017 +0900

    elm_config: Add env var to skip profile save
    
    This only skips writing the profile name to
      ~/.elementary/config/profile.cfg
    
    This allows easier testing of elementaryt apps (and E) with custom
    profiles.
    
    export ELM_PROFILE_NOSAVE=1
---
 src/lib/elementary/elm_config.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index f6bc5a8ee6..a3e4662682 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1926,10 +1926,13 @@ _elm_config_profile_save(const char *profile)
    Elm_Config_Derived *derived;
    char buf[4096], buf2[4096];
    int ok = 0, ret;
-   const char *err;
+   const char *err, *s;
    Eet_File *ef;
    size_t len;
 
+   if ((s = getenv("ELM_PROFILE_NOSAVE")) && atoi(s))
+     return EINA_TRUE;
+
    len = _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
    if (len + 1 >= sizeof(buf))
      return EINA_FALSE;

-- 


Reply via email to