aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-10-07 19:04:25 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-10-07 19:04:25 +0800
commit38fd32a8c0541a959537161ac7dd8737a0c86b7b (patch)
tree8d41ece32e7a6ab805a09fcbb4b46aee18cd1bc4 /embed/mozilla/mozilla-embed-single.cpp
parente100320fecf3a8432d2506b48e62c10cd9a13224 (diff)
downloadgsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar.gz
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar.bz2
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar.lz
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar.xz
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.tar.zst
gsoc2013-epiphany-38fd32a8c0541a959537161ac7dd8737a0c86b7b.zip
reviewed by: Christian Persch <chpe@cvs.gnome.org>
2004-10-07 Marco Pesenti Gritti <marco@gnome.org> reviewed by: Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-single.cpp: Initialize plugins path env var for backward compatibility
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 59a8cb00e..94f3123e3 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -321,6 +321,23 @@ mozilla_embed_single_new_window_orphan_cb (GtkMozEmbedSingle *embed,
}
static void
+mozilla_init_plugin_path ()
+{
+ const char *user_path;
+ char *new_path;
+
+ user_path = g_getenv ("MOZ_PLUGIN_PATH");
+ new_path = g_strconcat (user_path ? user_path : "",
+ user_path ? ":" : "",
+ MOZILLA_PREFIX "/lib/mozilla/plugins:"
+ MOZILLA_HOME "/plugins",
+ NULL);
+
+ g_setenv ("MOZ_PLUGIN_PATH", new_path, TRUE);
+ g_free (new_path);
+}
+
+static void
mozilla_init_single (MozillaEmbedSingle *mes)
{
GtkMozEmbedSingle *single;
@@ -463,6 +480,7 @@ static gboolean
init_services (MozillaEmbedSingle *single)
{
/* Pre initialization */
+ mozilla_init_plugin_path ();
mozilla_init_home ();
mozilla_init_profile ();