jpeg pushed a commit to branch master.

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

commit bc55beb6386575b826c8a452453930ef00c03b12
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Aug 18 15:52:46 2017 +0900

    config: Add env var to skip profile save
    
    This only skips writing the profile name to
      ~/.e/e/config/profile.cfg
    
    This allows easier testing of E with custom profiles.
    Note that this goes together with another patch in elementary, but the
    env var is different (note: we could use a single one). This is only
    meant for debugging.
    
    export E_CONF_PROFILE_NOSAVE=1
---
 src/bin/e_config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_config.c b/src/bin/e_config.c
index bb4b27a2a..d50aab5b1 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1956,8 +1956,12 @@ e_config_profile_save(void)
 {
    Eet_File *ef;
    char buf[4096], buf2[4096];
+   const char *s;
    int ok = 0;
 
+   if ((s = getenv("E_CONF_PROFILE_NOSAVE")) && atoi(s))
+     return 1;
+
    /* FIXME: check for other sessions fo E running */
    e_user_dir_concat_static(buf, "config/profile.cfg");
    e_user_dir_concat_static(buf2, "config/profile.cfg.tmp");

-- 


Reply via email to