diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/ephy-main.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 910851b4d..a901b8b8d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -140,6 +140,7 @@ epiphany_CPPFLAGS = \ -I$(top_srcdir)/src/bookmarks \ -DDATADIR=\""$(datadir)"\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ + -DEPHY_WEB_EXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_MAJOR)/web-extensions"\" \ $(INCINTL) \ $(AM_CPPFLAGS) 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); |