Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/adobe_flash/kspost.51.flashinstall.inc
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-10-16 20:20:59 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-10-16 20:22:04 (GMT)
commit2ced5a7b019ca2afe25afdedd78cbeb44b085100 (patch)
tree52882d361af3574d074253a66c05eb8d9a42999d /modules/adobe_flash/kspost.51.flashinstall.inc
parent2dc2f40a2f128c573c8265e8a8f5bbb408911489 (diff)
adobe_flash: support installing from bare .so file
Adobe Flash may be available on ARM as a bare libflashplayer.so file. Support installation of this format via the adobe_flash module.
Diffstat (limited to 'modules/adobe_flash/kspost.51.flashinstall.inc')
-rw-r--r--modules/adobe_flash/kspost.51.flashinstall.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/adobe_flash/kspost.51.flashinstall.inc b/modules/adobe_flash/kspost.51.flashinstall.inc
new file mode 100644
index 0000000..8578edd
--- /dev/null
+++ b/modules/adobe_flash/kspost.51.flashinstall.inc
@@ -0,0 +1,18 @@
+# Run Adobe install script (basically the point of this module)
+# see README for an explanation of why this is necessary
+[ -e /usr/lib/flash-plugin/setup ] && /usr/lib/flash-plugin/setup 32
+
+# nspluginwrapper is needed at this time, because libflashplayer links
+# against GTK2 but our browser (Browse/Epiphany) is GTK3.
+# nspluginwrapper provides a process separation model that avoids fatally
+# mixing GTK2/GTK3 symbols in the same process.
+#
+# Moving to WebKit2 will solve this problem, because it moves plugins into
+# their own process. When we move to WebKit2 we will be able to drop
+# nspluginwrapper.
+#
+# Delete all already-wrapped plugins, and only wrap libflashplayer
+rm -f /usr/lib/mozilla/plugins-wrapped/nswrapper*.so
+/usr/lib/nspluginwrapper/npconfig -n -p nswrapper_32_32 \
+ -d /usr/lib/mozilla/plugins-wrapped \
+ -i /usr/lib/mozilla/plugins/libflashplayer.so