Blob Blame History Raw
From bd03e748e07dd300015fdfee111420162f346e5f Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Mon, 14 Sep 2009 19:30:03 +0100
Subject: [PATCH] Setup nspluginwrapper if available

By calling mozilla-plugin-config on startup.
---
 embed/ephy-embed-single.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 4930f8e..aba0916 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -21,6 +21,7 @@
 #include "config.h"
 
 #define LIBSOUP_I_HAVE_READ_BUG_594377_AND_KNOW_SOUP_PASSWORD_MANAGER_MIGHT_GO_AWAY
+#define NSPLUGINWRAPPER_SETUP "/usr/bin/mozilla-plugin-config"
 
 #include "ephy-embed-single.h"
 #include "ephy-embed-prefs.h"
@@ -333,6 +334,10 @@ ephy_embed_single_initialize (EphyEmbedSingle *single)
   SoupCookieJar *jar;
   char *filename;
 
+  /* Initialise nspluginwrapper's plugins if available */
+  if (g_file_test (NSPLUGINWRAPPER_SETUP, G_FILE_TEST_EXISTS) != FALSE)
+    g_spawn_command_line_sync (NSPLUGINWRAPPER_SETUP, NULL, NULL, NULL, NULL);
+
   ephy_embed_prefs_init ();
 
   session = webkit_get_default_session ();
-- 
1.6.2.5