From fc84dd7b510b26b0e88ede79966cdec6d3e47aa8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 13 Jan 2010 13:52:34 +0000 Subject: Gnome thinks unloading plugins is an unnecessary feature, so we only run Gnome code out-of-process from now on --- src/plugins/ole2_extractor.c | 15 +++++++++++++++ src/plugins/thumbnailgtk_extractor.c | 14 ++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/src/plugins/ole2_extractor.c b/src/plugins/ole2_extractor.c index 5f6cd01..5cef88e 100644 --- a/src/plugins/ole2_extractor.c +++ b/src/plugins/ole2_extractor.c @@ -475,6 +475,21 @@ history_extract(GsfInput * stream, } + +const char * +EXTRACTOR_ole2_options () +{ + /* + Since the Gnome developers think that being unable to + unload plugins is an 'acceptable' limitation, we + require out-of-process execution for plugins depending + on libgsf and other glib-based plugins. + See also https://bugzilla.gnome.org/show_bug.cgi?id=374940 + */ + return "oop-only"; +} + + int EXTRACTOR_ole2_extract (const char *data, size_t size, diff --git a/src/plugins/thumbnailgtk_extractor.c b/src/plugins/thumbnailgtk_extractor.c index f5ea228..51e3ea4 100644 --- a/src/plugins/thumbnailgtk_extractor.c +++ b/src/plugins/thumbnailgtk_extractor.c @@ -41,6 +41,20 @@ void __attribute__ ((constructor)) ole_gobject_init () } +const char * +EXTRACTOR_thumbnailgtk_options () +{ + /* + Since the Gnome developers think that being unable to + unload plugins is an 'acceptable' limitation, we + require out-of-process execution for plugins depending + on libgsf and other glib-based plugins. + See also https://bugzilla.gnome.org/show_bug.cgi?id=374940 + */ + return "oop-only"; +} + + int EXTRACTOR_thumbnailgtk_extract (const char *data, size_t size, -- cgit v1.2.3