aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/Makefile.am1
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp7
2 files changed, 6 insertions, 2 deletions
diff --git a/embed/mozilla/Makefile.am b/embed/mozilla/Makefile.am
index ae1585ca2..fd10910fe 100644
--- a/embed/mozilla/Makefile.am
+++ b/embed/mozilla/Makefile.am
@@ -116,6 +116,7 @@ libephymozillaembed_la_CPPFLAGS = \
-I$(MOZILLA_INCLUDE_ROOT) \
$(addprefix -I$(MOZILLA_INCLUDE_ROOT)/,$(mozilla_include_subdirs)) \
-DSHARE_DIR=\"$(pkgdatadir)\" \
+ -DPLUGINDIR=\"$(libdir)/epiphany/$(EPIPHANY_MAJOR)/plugins\" \
-DMOZILLA_HOME=\"$(MOZILLA_HOME)\" \
-DMOZILLA_PREFIX=\"$(MOZILLA_PREFIX)\" \
-DALLOW_PRIVATE_API \
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 34cc1f0d5..f01fbcab3 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -356,8 +356,11 @@ mozilla_init_plugin_path ()
user_path = g_getenv ("MOZ_PLUGIN_PATH");
new_path = g_strconcat (user_path ? user_path : "",
user_path ? ":" : "",
- MOZILLA_PREFIX "/lib/mozilla/plugins:"
- MOZILLA_HOME "/plugins",
+ MOZILLA_PREFIX "/lib/mozilla/plugins"
+ ":" MOZILLA_HOME "/plugins",
+#ifdef HAVE_PRIVATE_PLUGINS
+ ":" PLUGINDIR,
+#endif
NULL);
g_setenv ("MOZ_PLUGIN_PATH", new_path, TRUE);