forked from enlightenment/efl
Use correct variable when searching for .desktop file.
Don't allow missing .desktop files. SVN revision: 29055
This commit is contained in:
parent
870067d6a9
commit
5258345822
|
@ -252,7 +252,9 @@ efreet_desktop_new(const char *file)
|
|||
if (!ini->data)
|
||||
{
|
||||
efreet_ini_free(ini);
|
||||
return desktop;
|
||||
IF_FREE(desktop->orig_path);
|
||||
free(desktop);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ok = efreet_ini_section_set(ini, "Desktop Entry");
|
||||
|
|
|
@ -73,7 +73,7 @@ efreet_util_desktop_by_file_id_get(const char *file_id)
|
|||
|
||||
while (p)
|
||||
{
|
||||
snprintf(buf, sizeof(buf), "%s/%s", dir, file_id);
|
||||
snprintf(buf, sizeof(buf), "%s/%s", dir, tmp);
|
||||
desktop = efreet_desktop_get(buf);
|
||||
if (desktop) break;
|
||||
p = strchr(p, '-');
|
||||
|
|
Loading…
Reference in New Issue