aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2009-09-15 02:30:03 +0800
committerBastien Nocera <hadess@hadess.net>2009-09-15 02:30:03 +0800
commitbd03e748e07dd300015fdfee111420162f346e5f (patch)
treef267170adfcbe2f9ffc05afb92bf5de8e04896f5 /embed
parenta8b9dd56db130c7b138963fca2fcc2092fc33ad0 (diff)
downloadgsoc2013-epiphany-bd03e748e07dd300015fdfee111420162f346e5f.tar.gz
gsoc2013-epiphany-bd03e748e07dd300015fdfee111420162f346e5f.tar.zst
gsoc2013-epiphany-bd03e748e07dd300015fdfee111420162f346e5f.zip
Setup nspluginwrapper if available
By calling mozilla-plugin-config on startup.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-single.c5
1 files changed, 5 insertions, 0 deletions
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 ();