fix opening a .desktop file which is a link to a file

SVN revision: 81243
This commit is contained in:
Mike Blumenkrantz 2012-12-18 12:28:37 +00:00
parent 317ca83733
commit ab1455310a
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}