[arch-multilib] Browser plugin location

Robert Meijers robert.meijers at gmail.com
Sun Aug 29 06:44:56 EDT 2010


Yesterday I installed the flashplugin from this repo. but this caused
the flash plugin in Opera (64 bit) to stop working because Opera
doesn't use nspluginwrapper (and blacklists it because it causes
problems) because it can run 32 bits plugins natively. Because the
flash plugin isn't in its plugin path (/usr/lib/mozilla/plugins
and /usr/lib/opera/plugins) it doesn't find the plugin. I've test if
Opera finds the plugin when placed in /usr/lib32/mozilla/plugins and
this seems to be the case. So its probably best to place the 32 bits
plugins in /usr/lib32/mozilla/plugins instead of the
/usr/lib/nspluginwrapper/i386/plugins so browsers who can run the 32
bit plugin still find it (because it isn't in an "obscure" folder) and
other browsers still use the nspluginwrapper plugin in
/usr/lib/mozilla/plugins/. This solution also keeps the /usr/lib
folder free of 32 bit libraries.

I've created a patch for the PKGBUILD and .install script so the flash
plugin gets installed in the /usr/lib32/mozilla/plugins path.

diff -U 2 /var/abs/multilib/flashplugin//flashplugin.install
--- /var/abs/multilib/flashplugin//flashplugin.install  2010-08-27
06:11:59.000000000 +0200
+++ ./flashplugin.install       2010-08-27 16:17:21.413333339 +0200
@@ -1,4 +1,4 @@
 post_upgrade() {
-  /usr/bin/nspluginwrapper -i
+  /usr/bin/nspluginwrapper -i /usr/lib32/mozilla/plugins/libflashplayer.so

diff -U 2 /var/abs/multilib/flashplugin//PKGBUILD ./PKGBUILD
--- /var/abs/multilib/flashplugin//PKGBUILD     2010-08-27
06:11:59.000000000 +0200
+++ ./PKGBUILD  2010-08-27 16:18:13.566666673 +0200
@@ -18,6 +18,6 @@

 package() {
-  install -d -m755 "${pkgdir}"/usr/lib/nspluginwrapper/i386/plugins/
-  install -m755 "${srcdir}"/libflashplayer.so
+  mkdir -p "${pkgdir}"/usr/lib32/mozilla/plugins
+  install -m755 "${srcdir}"/libflashplayer.so
  install -d -m755 "${pkgdir}"/usr/share/licenses/${pkgname}/
  install -m644 "${_licensefile}"

Robert Meijers

More information about the arch-multilib mailing list