forked from enlightenment/enlightenment
add more mime type locations - but this is bad - where do we stop?
SVN revision: 24911
This commit is contained in:
parent
d639384111
commit
853ee8330d
|
@ -89,6 +89,21 @@ _e_fm_mime_update(void)
|
||||||
homedir = e_user_homedir_get();
|
homedir = e_user_homedir_get();
|
||||||
if (!homedir) return;
|
if (!homedir) return;
|
||||||
|
|
||||||
|
{
|
||||||
|
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;
|
static time_t last_changed = 0;
|
||||||
time_t ch;
|
time_t ch;
|
||||||
|
@ -104,6 +119,19 @@ _e_fm_mime_update(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
static time_t last_changed = 0;
|
static time_t last_changed = 0;
|
||||||
time_t ch;
|
time_t ch;
|
||||||
|
|
Loading…
Reference in New Issue