forked from enlightenment/enlightenment
fix opening a .desktop file which is a link to a file
SVN revision: 81243
This commit is contained in:
parent
317ca83733
commit
ab1455310a
|
@ -525,7 +525,12 @@ _e_fm2_icon_realpath(const E_Fm2_Icon *ic, char *buf, int buflen)
|
|||
static inline Eina_Bool
|
||||
_e_fm2_icon_path(const E_Fm2_Icon *ic, char *buf, int buflen)
|
||||
{
|
||||
int r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file);
|
||||
int r;
|
||||
|
||||
if (ic->info.link)
|
||||
snprintf(buf, buflen, "%s", ic->info.link);
|
||||
else
|
||||
r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file);
|
||||
return r < buflen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue