From 76047452a6198c0fa8a32897c8476f63c9495e4a Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 19 Oct 2006 19:37:26 +0000 Subject: [PATCH] Some file manager or something is leaving strange .directory files in inconvenient places. Ignore them. Thanks to Hawkwind for helping track this down. SVN revision: 26697 --- src/bin/e_apps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 4d4bdae6f..b45d2679f 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -426,7 +426,8 @@ e_app_new(const char *path, int scan_subdirs) snprintf(buf, sizeof(buf), "%s/.directory", path); if (ecore_file_exists(buf)) e_app_fields_fill(a, buf); - else + /* Not all .directory files are created equal, some unknown file manager can create bogus ones. */ + if (!a->filled) { a->name = evas_stringshare_add(ecore_file_get_file(a->path)); a->filled = 1;