aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 3a464e476..7c38fd952 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -458,6 +458,12 @@ main (int argc,
gtk_window_set_default_icon_name ("web-browser");
}
+#ifdef HAVE_WEBKIT2
+ /* Set the web extensions dir ASAP before the process is launched */
+ webkit_web_context_set_web_extensions_directory (webkit_web_context_get_default (),
+ EPHY_WEB_EXTENSIONS_DIR);
+#endif
+
ephy_embed_prefs_init ();
_ephy_shell_create_instance (mode);