+void wxMimeTypesManagerImpl::LoadXDGGlobs(const wxString& filename)
+{
+ if ( !wxFileName::FileExists(filename) )
+ return;
+
+ wxLogTrace(TRACE_MIME, wxT("loading XDG globs file from %s"), filename.c_str());
+
+ wxMimeTextFile file(filename);
+ if ( !file.Open() )
+ return;
+
+ size_t i;
+ for (i = 0; i < file.GetLineCount(); i++)
+ {
+ wxStringTokenizer tok( file.GetLine(i), ":" );
+ wxString mime = tok.GetNextToken();
+ wxString ext = tok.GetNextToken();
+ ext.Remove( 0, 2 );
+ wxArrayString exts;
+ exts.Add( ext );
+
+ AddToMimeData(mime, wxEmptyString, NULL, exts, wxEmptyString, true );
+ }
+}
+