From bd03e748e07dd300015fdfee111420162f346e5f Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 14 Sep 2009 19:30:03 +0100 Subject: Setup nspluginwrapper if available By calling mozilla-plugin-config on startup. --- embed/ephy-embed-single.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'embed') diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index 4930f8e7b..aba0916b1 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 (); -- cgit v1.2.3