forked from enlightenment/enlightenment
fix efm link resolving.. again. new case.
This commit is contained in:
parent
0d16ba68cd
commit
174a5fab15
|
@ -536,11 +536,14 @@ _e_fm2_icon_path(const E_Fm2_Icon *ic, char *buf, int buflen)
|
|||
char *tmp;
|
||||
|
||||
r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file);
|
||||
tmp = ecore_file_realpath(buf);
|
||||
if (tmp)
|
||||
if (!ic->sd->dev)
|
||||
{
|
||||
r = snprintf(buf, buflen, "%s", tmp);
|
||||
free(tmp);
|
||||
tmp = ecore_file_realpath(buf);
|
||||
if (tmp)
|
||||
{
|
||||
r = snprintf(buf, buflen, "%s", tmp);
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5746,7 +5749,10 @@ _e_fm2_inplace_open(const E_Fm2_Icon *ic)
|
|||
if (!_e_fm2_icon_path(ic, buf, sizeof(buf)))
|
||||
return -1;
|
||||
|
||||
e_fm2_path_set(ic->sd->obj, ic->info.link ? "/" : ic->sd->dev, buf);
|
||||
e_fm2_path_set(ic->sd->obj,
|
||||
// ic->info.link ? "/" : ic->sd->dev,
|
||||
ic->sd->dev,
|
||||
buf);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue