openbsd-ports/www/seamonkey/patches/patch-mozilla_xpcom_io_nsAppFileLocationProvider_cpp
landry 18d99d0513 Same change as done in productivity/sunbird and mail/mozilla-thunderbird,
harmonize default search paths for systemwide mozilla extensions and
plugins to ${LOCALBASE}/lib/mozilla/{plugins,extensions}. The
install.rdf files take care anyway of telling with which mozapp an xpi
extension is compatible.
2010-04-27 21:03:25 +00:00

18 lines
852 B
Plaintext

$OpenBSD: patch-mozilla_xpcom_io_nsAppFileLocationProvider_cpp,v 1.1 2010/04/27 21:03:25 landry Exp $
--- mozilla/xpcom/io/nsAppFileLocationProvider.cpp.orig Sat Apr 24 16:14:01 2010
+++ mozilla/xpcom/io/nsAppFileLocationProvider.cpp Sat Apr 24 16:14:26 2010
@@ -254,12 +254,7 @@ nsAppFileLocationProvider::GetFile(const char *prop, P
}
#ifdef XP_UNIX
else if (nsCRT::strcmp(prop, NS_SYSTEM_PLUGINS_DIR) == 0) {
- static const char *const sysLPlgDir =
-#if defined(HAVE_USR_LIB64_DIR) && defined(__LP64__)
- "/usr/lib64/mozilla/plugins";
-#else
- "/usr/lib/mozilla/plugins";
-#endif
+ static const char *const sysLPlgDir = "${LOCALBASE}/lib/mozilla/plugins";
rv = NS_NewNativeLocalFile(nsDependentCString(sysLPlgDir),
PR_FALSE, getter_AddRefs(localFile));
}