diff options
author | Marco Pesenti Gritti <marcopg@litl.com> | 2009-03-16 20:08:21 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:21 (GMT) |
commit | d39981082070280a245a85d9b1f13fd7220eaf0d (patch) | |
tree | 2bef23e162154e896459ec81a1c24bd6d3bded6b /browser-plugin/glue.cpp | |
parent | 0b05393af8dbe1cb5652a08b58cb863ce5345b57 (diff) |
Include binary version in the module file name
Diffstat (limited to 'browser-plugin/glue.cpp')
-rw-r--r-- | browser-plugin/glue.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp index 74a3a34..f63fb9e 100644 --- a/browser-plugin/glue.cpp +++ b/browser-plugin/glue.cpp @@ -47,12 +47,17 @@ InitEvince (void) /* Keep libevview in memory. NPPVpluginKeepLibraryInMemory is broken. See https://bugzilla.mozilla.org/show_bug.cgi?id=359870 */ - GModule *module = g_module_open ("libevview", (GModuleFlags)0); - if (module == NULL) { + char *file_name = g_strconcat ("libevview", "." G_MODULE_SUFFIX "." + EV_BINARY_VERSION, NULL); + GModule *module = g_module_open (file_name, (GModuleFlags)0); + g_free (file_name); + + if (module != NULL) { + g_module_make_resident (module); + g_module_close (module); + } else { return false; } - g_module_make_resident (module); - g_module_close (module); #endif ev_init (); |