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:
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