Allow evaluating env vars from FDO specs (menus, trash, etc).

Uses efreet calls to get value of these vars.


SVN revision: 32033
This commit is contained in:
Christopher Michael 2007-10-10 09:41:58 +00:00
parent 65a164427a
commit c999ac8a20
1 changed files with 8 additions and 1 deletions

View File

@ -660,7 +660,14 @@ e_util_shell_env_path_eval(char *path)
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;