openbsd-ports/mail/mozilla-thunderbird/patches/patch-mozilla_toolkit_xre_nsXREDirProvider_cpp
landry 0eb43819cb Harmonize default search paths for systemwide thunderbird extensions
and plugins to ${LOCALBASE}/lib/mozilla/{plugins,extensions}. Doesn't
affect existing applications/installed plugins as laucher script still
adds lib/mozilla-plugins to MOZ_PLUGIN_PATH, and so far no package
installs systemwide mozilla extensions. In the long term, will permit to
un-subpackage lightning & enigmail for seamonkey & thunderbird.
idea from ajacoutot@, diff liked by ajacoutot@ & sthen@
2010-04-27 20:57:55 +00:00

17 lines
706 B
Plaintext

$OpenBSD: patch-mozilla_toolkit_xre_nsXREDirProvider_cpp,v 1.2 2010/04/27 20:57:55 landry Exp $
--- mozilla/toolkit/xre/nsXREDirProvider.cpp.orig Sat Dec 5 02:56:51 2009
+++ mozilla/toolkit/xre/nsXREDirProvider.cpp Sat Jan 16 16:31:41 2010
@@ -1144,11 +1144,7 @@ nsXREDirProvider::GetSystemExtensionsDirectory(nsILoca
NS_ENSURE_SUCCESS(rv, rv);
#elif defined(XP_UNIX)
static const char *const sysSExtDir =
-#ifdef HAVE_USR_LIB64_DIR
- "/usr/lib64/mozilla/extensions";
-#else
- "/usr/lib/mozilla/extensions";
-#endif
+ "${LOCALBASE}/lib/mozilla/extensions";
rv = NS_NewNativeLocalFile(nsDependentCString(sysSExtDir), PR_FALSE,
getter_AddRefs(localDir));