Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_utils.c Log Message: Allow evaluating env vars from FDO specs (menus, trash, etc). Uses efreet calls to get value of these vars. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_utils.c,v retrieving revision 1.74 retrieving revision 1.75 diff -u -3 -r1.74 -r1.75 --- e_utils.c 26 Jul 2007 11:34:09 -0000 1.74 +++ e_utils.c 10 Oct 2007 09:41:58 -0000 1.75 @@ -660,7 +660,14 @@ s = alloca(v2 - v1); strncpy(s, v1 + 1, v2 - v1 - 1); s[v2 - v1 - 1] = 0; - v = getenv(s); + if (!strcmp(s, "XDG_CONFIG_HOME")) + v = (char *)efreet_config_home_get(); + else if (!strcmp(s, "XDG_CACHE_HOME")) + v = (char *)efreet_cache_home_get(); + else if (!strcmp(s, "XDG_DATA_HOME")) + v = (char *)efreet_data_home_get(); + else + v = getenv(s); if (v) { vp = v; ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs