[epiphany] Load web extension from build root in developer mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Load web extension from build root in developer mode
- Date: Wed, 18 Apr 2018 02:48:37 +0000 (UTC)
commit 6ab3c7aa955aa1d1b34b647984f44617243b8082
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Apr 17 21:47:30 2018 -0500
Load web extension from build root in developer mode
This is the final step needed to make epiphany work when not installed.
embed/ephy-embed-shell.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index ea929e3..65ef092 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -743,7 +743,11 @@ initialize_web_extensions (WebKitWebContext *web_context,
gboolean browser_mode;
const char *address;
+#if DEVELOPER_MODE
+ webkit_web_context_set_web_extensions_directory (web_context, BUILD_ROOT "/embed/web-extension");
+#else
webkit_web_context_set_web_extensions_directory (web_context, EPHY_WEB_EXTENSIONS_DIR);
+#endif
address = priv->dbus_server ? g_dbus_server_get_client_address (priv->dbus_server) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]