fix efm link resolving.. again. new case.

This commit is contained in:
Carsten Haitzler 2013-03-12 15:47:41 +09:00
parent 0d16ba68cd
commit 174a5fab15
1 changed files with 11 additions and 5 deletions

View File

@ -536,6 +536,8 @@ _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);
if (!ic->sd->dev)
{
tmp = ecore_file_realpath(buf);
if (tmp)
{
@ -544,6 +546,7 @@ _e_fm2_icon_path(const E_Fm2_Icon *ic, char *buf, int buflen)
}
}
}
}
else
r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file);
return r < buflen;
@ -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;
}