Enlightenment CVS committal

Author  : morlenxus
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_mime.c 


Log Message:
Added the same searchpathes for mimetypes as the efm is using.
There is still a bug in line 318, when disabling this line the mimetype editor
displays mimetypes, if enabled it doesn't show a single mimetype.
Will fix that later...

Also added the vim macro.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_mime.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_int_config_mime.c 14 Nov 2006 06:09:32 -0000      1.15
+++ e_int_config_mime.c 23 Nov 2006 00:57:18 -0000      1.16
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
 #include "e.h"
 
 typedef struct _Config_Glob Config_Glob;
@@ -82,11 +85,23 @@
    if (!cfdata) return;
    homedir = e_user_homedir_get();
 
+   snprintf(buf, sizeof(buf), "/usr/local/etc/mime.types");
+   if (ecore_file_exists(buf))
+     _load_mimes(cfdata, buf);
+
+   snprintf(buf, sizeof(buf), "/etc/mime.types");
+   if (ecore_file_exists(buf))
+     _load_mimes(cfdata, buf);
+
    snprintf(buf, sizeof(buf), "/usr/local/share/mime/globs");
    if (ecore_file_exists(buf))
      _load_mimes(cfdata, buf);
 
    snprintf(buf, sizeof(buf), "/usr/share/mime/globs");
+   if (ecore_file_exists(buf))
+     _load_mimes(cfdata, buf);
+
+   snprintf(buf, sizeof(buf), "%s/.mime.types", homedir);
    if (ecore_file_exists(buf))
      _load_mimes(cfdata, buf);
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to