2012-09-01 09:56:45 -04:00
|
|
|
$OpenBSD: patch-toolkit_xre_nsXREDirProvider_cpp,v 1.14 2012/09/01 13:56:45 landry Exp $
|
2011-04-19 05:16:33 -04:00
|
|
|
Look for extensions in LOCALBASE
|
2012-09-01 09:56:45 -04:00
|
|
|
--- toolkit/xre/nsXREDirProvider.cpp.orig Wed Aug 15 07:48:34 2012
|
|
|
|
+++ toolkit/xre/nsXREDirProvider.cpp Sun Aug 19 13:50:39 2012
|
|
|
|
@@ -1177,11 +1177,7 @@ nsXREDirProvider::GetSystemExtensionsDirectory(nsILoca
|
2008-11-20 18:41:32 -05: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
|
2010-04-28 02:56:38 -04:00
|
|
|
+ "${LOCALBASE}/lib/mozilla/extensions";
|
2008-11-20 18:41:32 -05:00
|
|
|
|
2012-02-20 15:15:04 -05:00
|
|
|
rv = NS_NewNativeLocalFile(nsDependentCString(sysSExtDir), false,
|
2008-11-20 18:41:32 -05:00
|
|
|
getter_AddRefs(localDir));
|