2012-02-20 15:21:43 -05:00
|
|
|
$OpenBSD: patch-toolkit_xre_nsXREDirProvider_cpp,v 1.6 2012/02/20 20:21:43 landry Exp $
|
2011-06-28 18:01:17 -04:00
|
|
|
Look for extensions in LOCALBASE
|
2012-02-20 15:21:43 -05:00
|
|
|
--- toolkit/xre/nsXREDirProvider.cpp.orig Wed Jan 11 18:15:08 2012
|
|
|
|
+++ toolkit/xre/nsXREDirProvider.cpp Sat Jan 14 20:24:24 2012
|
|
|
|
@@ -1128,11 +1128,7 @@ nsXREDirProvider::GetSystemExtensionsDirectory(nsILoca
|
2011-04-12 15:48:57 -04:00
|
|
|
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";
|
|
|
|
|
2012-02-20 15:21:43 -05:00
|
|
|
rv = NS_NewNativeLocalFile(nsDependentCString(sysSExtDir), false,
|
2011-04-12 15:48:57 -04:00
|
|
|
getter_AddRefs(localDir));
|