linux plugins and mozila related browsers

Norikatsu Shigemura nork at FreeBSD.org
Sat Oct 15 10:31:22 PDT 2005


Hi.

	I want to do following things.  But I cannot do it:-(.  Please
	help me:-).

	1. Make mozilla related browsers (mozilla, firefox, epiphany, ...)
	   don't readlink(2) plugin files in /usr/X11R6/lib/browser_plugins/.
	   I researched www/firefox and found MOZ_PLUGIN_PATH related
	   codes in xpcom/io/nsAppFileLocationProvider.cpp.

	   I tested following change:
-            rv = NS_NewNativeLocalFile(nsDependentCString(pathVar), PR_TRUE, getter_AddRefs(localFile));
+            rv = NS_NewNativeLocalFile(nsDependentCString(pathVar), PR_FALSE, getter_AddRefs(localFile));
	   But PR_TRUE/PR_FALSE flags are not available:-(.  So I
	   don't know how to fix it....

	2. Add LPW enabled check code in /usr/X11R6/lib/firefox/run-mozilla.sh.
	   a. LPW enabled check
	      I think that ldd(1) should be supported Linux dynamic object.
	      SEE ALSO:
		http://lists.freebsd.org/pipermail/freebsd-hackers/2005-October/014028.html

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ldd /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so 2> /dev/null | grep pluginwrapper > /dev/null; then
	MOZ_PLUGIN_PATH=/usr/X11R6/lib/browser_linux_plugins:/usr/X11R6/lib/browser_plugins; export MOZ_PLUGIN_PATH
else
	MOZ_PLUGIN_PATH=/usr/X11R6/lib/browser_plugins; export MOZ_PLUGIN_PATH
fi
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
		
	3. Does MOZ_PLUGIN_PATH support multiple plugin path?
	   It is good that set MOZ_PLUGIN_PATH=/usr/X11R6/lib/browser_linux_plugins:/usr/X11R6/lib/browser_plugins.
	   But I cannot follow MOZ_PLUGIN_PATH process:-(.

	If above things are success, mezz@ requested things are over.
	SEE ALSO:
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072407.html
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072409.html
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072411.html
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072412.html
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072499.html
	http://lists.freebsd.org/pipermail/cvs-ports/2005-September/072502.html


More information about the freebsd-gnome mailing list