Expand env variables before opening fwin

Use e_util_shell_env_path_eval to expand variables so that file:$HOME/..
will work when using actions. Else using the fileman/favorites .desktop
files work from fileman but not when launching from f.ex. ibar.

SVN revision: 45050
This commit is contained in:
Sebastian Dransfeld 2010-01-11 20:34:18 +00:00
parent 9c7c664034
commit 4028c25d33
1 changed files with 9 additions and 1 deletions

View File

@ -192,7 +192,15 @@ _e_mod_action_fileman_cb(E_Object *obj, const char *params)
else if (params && params[0] == '~')
e_fwin_new(zone->container, "~/", params + 1);
else if (params)
e_fwin_new(zone->container, params, "/");
{
char *path;
path = e_util_shell_env_path_eval(params);
if (path)
{
e_fwin_new(zone->container, path, "/");
free(path);
}
}
else
e_fwin_new(zone->container, "favorites", "/");
}