aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2013-02-20 00:13:51 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-02-21 16:05:16 +0800
commit8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f (patch)
treef2680267526abbd776b8a9b0181357e3dcd00454 /src
parent892b1d2649776dac118622a59cf827c7f1b51811 (diff)
downloadgsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar.gz
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar.bz2
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar.lz
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar.xz
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.tar.zst
gsoc2013-epiphany-8ec71c6a3b9f2ab3f10b1eef201f758bdb44e21f.zip
web-extension: Use a different service name for every web process extension
Diffstat (limited to 'src')
-rw-r--r--src/ephy-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 7c38fd952..1ec4b4b05 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -229,6 +229,7 @@ main (int argc,
EphyShell *ephy_shell;
int status;
EphyFileHelpersFlags flags;
+ char *pid_str;
#ifdef ENABLE_NLS
/* Initialize the i18n stuff */
@@ -459,6 +460,10 @@ main (int argc,
}
#ifdef HAVE_WEBKIT2
+ pid_str = g_strdup_printf ("%u", getpid ());
+ g_setenv ("EPHY_WEB_EXTENSION_ID", pid_str, TRUE);
+ g_free (pid_str);
+
/* 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);