[epiphany] Setup nspluginwrapper if available



commit bd03e748e07dd300015fdfee111420162f346e5f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 14 19:30:03 2009 +0100

    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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]