From: Enlightenment C. <no...@cv...> - 2006-08-19 15:18:04
|
Enlightenment CVS committal Author : raster Project : e17 Module : apps/e Dir : e17/apps/e/src/bin Modified Files: e_fm_mime.c Log Message: add more mime type locations - but this is bad - where do we stop? =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm_mime.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_fm_mime.c 19 Aug 2006 02:00:14 -0000 1.3 +++ e_fm_mime.c 19 Aug 2006 15:18:00 -0000 1.4 @@ -93,6 +93,21 @@ static time_t last_changed = 0; time_t ch; + snprintf(buf, sizeof(buf), "/usr/local/etc/mime.types"); + ch = ecore_file_mod_time(buf); + if ((ch != last_changed) || (reload)) + { + _e_fm_mime_all_free(); + last_changed = ch; + _e_fm_mime_mime_types_load(buf); + reload = 1; + } + } + + { + static time_t last_changed = 0; + time_t ch; + snprintf(buf, sizeof(buf), "/etc/mime.types"); ch = ecore_file_mod_time(buf); if ((ch != last_changed) || (reload)) @@ -101,6 +116,19 @@ last_changed = ch; _e_fm_mime_mime_types_load(buf); reload = 1; + } + } + + { + static time_t last_changed = 0; + time_t ch; + + snprintf(buf, sizeof(buf), "/usr/local/share/mime/globs"); + ch = ecore_file_mod_time(buf); + if ((ch != last_changed) || (reload)) + { + last_changed = ch; + _e_fm_mime_shared_mimeinfo_globs_load(buf); } } |