#include "wx/defs.h"
#endif
-#if wxUSE_FILE && wxUSE_TEXTFILE
+#if wxUSE_MIMETYPE && wxUSE_FILE && wxUSE_TEXTFILE
#ifndef WX_PRECOMP
#include "wx/string.h"
wxString strHome = wxGetenv(wxT("HOME"));
wxArrayString dirs;
+ dirs.Add ( strHome + wxT("/.") );
dirs.Add ( wxT("/etc/") );
dirs.Add ( wxT("/usr/etc/") );
dirs.Add ( wxT("/usr/local/etc/") );
dirs.Add ( wxT("/etc/mail/") );
dirs.Add ( wxT("/usr/public/lib/") );
- dirs.Add ( strHome + wxT("/.") );
if (!sExtraDir.IsEmpty()) dirs.Add ( sExtraDir + wxT("/") );
size_t nDirs = dirs.GetCount();
strExtensions = strRHS;
}
else {
- wxLogWarning(_("Unknown field in file %s, line %d: '%s'."),
- strFileName.c_str(), nLine + 1, strLHS.c_str());
+ // this one is simply ignored: it usually refers to Netscape
+ // built in icons which are useless for us anyhow
+ if ( strLHS != _T("icon") )
+ {
+ wxLogWarning(_("Unknown field in file %s, line %d: '%s'."),
+ strFileName.c_str(), nLine + 1, strLHS.c_str());
+ }
}
if ( !entryEnded ) {
}
#endif
- // wxUSE_FILE && wxUSE_TEXTFILE
+ // wxUSE_MIMETYPE && wxUSE_FILE && wxUSE_TEXTFILE