summarylogtreecommitdiffstats
path: root/pluginsdir.diff
blob: f1ce3311a6c855a0431a5ffcaeccc2c00b5e57f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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/meson.build
+++ a/meson.build
@@ -17,6 +17,7 @@
 pkglibdir = join_paths(libdir, 'epiphany')
 pkglibexecdir = join_paths(libexecdir, 'epiphany')
 webextensionsdir = join_paths(pkglibdir, 'web-extensions')
+pluginsdir = join_paths(pkglibdir, 'plugins')
 
 iso_codes = dependency('iso-codes')
 iso_codes_prefix = iso_codes.get_pkgconfig_variable('prefix')