From 397e7f982905e5adf500878fa9f447aaa59f4bd4 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 1 Jul 2008 10:04:35 +0000 Subject: [PATCH] Add code for parsing globs file in /usr/local as well git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/mimetype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index a2baf6f0e9..1bce2f3121 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -265,7 +265,7 @@ void wxMimeTypesManagerImpl::LoadXDGGlobs(const wxString& filename) wxArrayString exts; exts.Add( ext ); - AddToMimeData(mime, wxEmptyString, NULL, exts, wxEmptyString, false ); + AddToMimeData(mime, wxEmptyString, NULL, exts, wxEmptyString, true ); } } @@ -528,6 +528,7 @@ void wxMimeTypesManagerImpl::Initialize(int mailcapStyles, // Read MIME type - extension associations LoadXDGGlobs( "/usr/share/mime/globs" ); + LoadXDGGlobs( "/usr/local/share/mime/globs" ); // Load desktop files for XDG, and then override them with the defaults. // We will override them one desktop file at a time, rather -- 2.45.2