add more mime type locations - but this is bad - where do we stop?

SVN revision: 24911
This commit is contained in:
Carsten Haitzler 2006-08-19 15:18:00 +00:00
parent d639384111
commit 853ee8330d
1 changed files with 28 additions and 0 deletions

View File

@ -89,6 +89,21 @@ _e_fm_mime_update(void)
homedir = e_user_homedir_get();
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;
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;
time_t ch;