firefox 3.0.4: use /usr/lib/mozilla/plugins to load plugins
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 21 Nov 2008 21:31:34 +0000 (19:31 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 21 Nov 2008 21:44:10 +0000 (19:44 -0200)
packages/mozilla/firefox/plugins-dir.patch [new file with mode: 0644]
packages/mozilla/firefox_3.0.4.bb

diff --git a/packages/mozilla/firefox/plugins-dir.patch b/packages/mozilla/firefox/plugins-dir.patch
new file mode 100644 (file)
index 0000000..bc0dfe7
--- /dev/null
@@ -0,0 +1,14 @@
+--- mozilla/browser/app/mozilla.in.orig 2007-10-05 10:29:26.000000000 +0300\r
++++ mozilla/browser/app/mozilla.in      2008-08-26 17:21:20.000000000 +0300\r
+@@ -54,6 +54,11 @@\r
+\r
+ moz_libdir=%MOZAPPDIR%\r
+\r
++if test -d /usr/lib/mozilla/plugins; then\r
++       MOZ_PLUGIN_PATH="${MOZ_PLUGIN_PATH:+"$MOZ_PLUGIN_PATH:"}/usr/lib/mozilla/plugins"\r
++       export MOZ_PLUGIN_PATH\r
++fi\r
++\r
+ # Use run-mozilla.sh in the current dir if it exists\r
+ # If not, then start resolving symlinks until we find run-mozilla.sh\r
+ found=0\r
index 2dce2e5..83836d9 100644 (file)
@@ -12,6 +12,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/
        file://jemalloc-tls.patch;patch=1 \
        file://0001-Remove-Werror-from-build.patch;patch=1 \
        file://0002-Fix-security-cross-compile-cpu-detection-error.patch;patch=1 \
+       file://plugins-dir.patch;patch=1 \
 "
 
 S = "${WORKDIR}/mozilla"