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



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to