forked from enlightenment/enlightenment
Don't let those sneaky little .eaps back in.
SVN revision: 26767
This commit is contained in:
parent
18313b5421
commit
fab74676bc
|
@ -143,6 +143,8 @@ e_app_init(void)
|
|||
const char *file;
|
||||
|
||||
while ((file = ecore_list_next(_e_apps_all_filenames)))
|
||||
{
|
||||
if (_e_app_is_eapp(file))
|
||||
{
|
||||
E_App *app;
|
||||
|
||||
|
@ -157,6 +159,7 @@ e_app_init(void)
|
|||
e_object_ref(E_OBJECT(app));
|
||||
}
|
||||
}
|
||||
}
|
||||
ecore_list_destroy(_e_apps_all_filenames);
|
||||
}
|
||||
printf("INITIAL APP SCAN %3.3f\n", ecore_time_get() - begin);
|
||||
|
@ -1756,7 +1759,7 @@ EAPI void
|
|||
e_app_fields_fill(E_App *a, const char *path)
|
||||
{
|
||||
char *str, *v;
|
||||
const char *lang, *ext;
|
||||
const char *lang;
|
||||
int size;
|
||||
|
||||
/* get our current language */
|
||||
|
@ -1770,8 +1773,7 @@ e_app_fields_fill(E_App *a, const char *path)
|
|||
if (!path) path = a->path;
|
||||
if (!path) return;
|
||||
|
||||
ext = strrchr(path, '.');
|
||||
if ( (ext) && ((strcmp(ext, ".desktop") == 0) || (strcmp(ext, ".directory") == 0)) )
|
||||
if (_e_app_is_eapp(path))
|
||||
{ /* It's a .desktop file. */
|
||||
Ecore_Desktop *desktop;
|
||||
|
||||
|
@ -1890,8 +1892,7 @@ e_app_fields_save(E_App *a)
|
|||
else
|
||||
new_eap = 1;
|
||||
|
||||
ext = strrchr(a->path, '.');
|
||||
if ((ext) && (strcmp(ext, ".desktop") == 0))
|
||||
if (_e_app_is_eapp(a->path))
|
||||
{ /* It's a .desktop file. */
|
||||
Ecore_Desktop *desktop;
|
||||
int created = 0;
|
||||
|
|
Loading…
Reference in New Issue