aboutsummaryrefslogtreecommitdiffstats
path: root/embed/web-extension/ephy-web-extension.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/web-extension/ephy-web-extension.c')
-rw-r--r--embed/web-extension/ephy-web-extension.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 1650026a3..8eb93e8a7 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -159,11 +159,15 @@ bus_acquired_cb (GDBusConnection *connection,
G_MODULE_EXPORT void
webkit_web_extension_initialize (WebKitWebExtension *extension)
{
+ char *service_name;
+
+ service_name = g_strdup_printf ("%s-%s", EPHY_WEB_EXTENSION_SERVICE_NAME, g_getenv ("EPHY_WEB_EXTENSION_ID"));
g_bus_own_name (G_BUS_TYPE_SESSION,
- EPHY_WEB_EXTENSION_SERVICE_NAME,
+ service_name,
G_BUS_NAME_OWNER_FLAGS_NONE,
bus_acquired_cb,
NULL, NULL,
g_object_ref (extension),
(GDestroyNotify)g_object_unref);
+ g_free (service_name);
}