From: Julian Smart Date: Thu, 7 Feb 2002 16:11:09 +0000 (+0000) Subject: Put ~/.mailcap to head of search list so local settings override X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d353bd452e4d4e30aa0eab88ca8abc680fdcc345 Put ~/.mailcap to head of search list so local settings override global ones. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 3f6c023782..4913cd53d5 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -1357,12 +1357,12 @@ void wxMimeTypesManagerImpl::GetMimeInfo (const wxString& sExtraDir) 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();