fileman - handle rare path where dev may not be found
fix CID 1425230 1425226
This commit is contained in:
parent
65f9b94d2b
commit
948d064561
|
@ -208,7 +208,7 @@ static void
|
||||||
_e_mod_action_fileman_show_cb(E_Object *obj EINA_UNUSED,
|
_e_mod_action_fileman_show_cb(E_Object *obj EINA_UNUSED,
|
||||||
const char *params)
|
const char *params)
|
||||||
{
|
{
|
||||||
const char *dev = NULL, *path = NULL;
|
const char *dev = "/", *path = NULL;
|
||||||
char *p = NULL;
|
char *p = NULL;
|
||||||
E_Zone *zone = NULL;
|
E_Zone *zone = NULL;
|
||||||
|
|
||||||
|
@ -216,15 +216,9 @@ _e_mod_action_fileman_show_cb(E_Object *obj EINA_UNUSED,
|
||||||
if (zone)
|
if (zone)
|
||||||
{
|
{
|
||||||
if (params && params[0] == '/')
|
if (params && params[0] == '/')
|
||||||
{
|
path = params;
|
||||||
dev = "/";
|
|
||||||
path = params;
|
|
||||||
}
|
|
||||||
else if (params && params[0] == '~')
|
else if (params && params[0] == '~')
|
||||||
{
|
path = params + 1;
|
||||||
dev = "~/";
|
|
||||||
path = params + 1;
|
|
||||||
}
|
|
||||||
else if (params && strcmp(params, "(none)")) /* avoid matching paths that no longer exist */
|
else if (params && strcmp(params, "(none)")) /* avoid matching paths that no longer exist */
|
||||||
{
|
{
|
||||||
p = e_util_shell_env_path_eval(params);
|
p = e_util_shell_env_path_eval(params);
|
||||||
|
|
Loading…
Reference in New Issue