forked from enlightenment/enlightenment
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. SVN revision: 27198
This commit is contained in:
parent
e57b766175
commit
90eaa9c937
|
@ -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,6 +85,14 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
|||
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);
|
||||
|
@ -90,6 +101,10 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
|||
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);
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s/.local/share/mime/globs", homedir);
|
||||
if (ecore_file_exists(buf))
|
||||
_load_mimes(cfdata, buf);
|
||||
|
|
Loading…
Reference in New Issue