summarylogtreecommitdiffstats
path: root/pluginsdir.diff
blob: 59d6b6e4f4fe0ddf5e36d620ccb800b6086f4bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -671,6 +671,7 @@ ephy_embed_shell_create_web_context (EphyEmbedShell *shell)
   g_free (cache_dir);
 
   priv->web_context = webkit_web_context_new_with_website_data_manager (manager);
+  webkit_web_context_set_additional_plugins_directory (priv->web_context, EPHY_PLUGINS_DIR);
   g_object_unref (manager);
 }
 
--- a/embed/Makefile.am.orig	2017-04-08 12:22:50.192861523 +0000
+++ b/embed/Makefile.am	2017-04-08 12:23:13.926290709 +0000
@@ -61,6 +61,7 @@
 	libephyembed_la_CFLAGS = \
 	-DDATADIR="\"$(datadir)\""	\
 	-DSHARE_DIR=\"$(pkgdatadir)\"	\
+	-DEPHY_PLUGINS_DIR=\""$(libdir)/epiphany/plugins"\" \
 	-DEPHY_WEB_EXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_MAJOR)/web-extensions"\" \
 	$(DEPENDENCIES_CFLAGS) 	\
 	$(CODE_COVERAGE_CFLAGS) \