After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 407419 - Epiphany 64-bit can't find 64-bit plugins
Epiphany 64-bit can't find 64-bit plugins
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: 2.18.x
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2007-02-13 10:54 UTC by Bastien Nocera
Modified: 2007-03-16 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ephy-lookup-64-bit-plugins.patch (1.02 KB, patch)
2007-02-13 11:30 UTC, Bastien Nocera
needs-work Details | Review
ephy-lookup-64-bit-plugins-2.patch (2.38 KB, patch)
2007-03-13 01:53 UTC, Bastien Nocera
none Details | Review
ephy-lookup-64-bit-plugins-3.patch (2.49 KB, patch)
2007-03-15 09:28 UTC, Bastien Nocera
reviewed Details | Review
ephy-lookup-64-bit-plugins-4.patch (2.88 KB, patch)
2007-03-16 11:13 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2007-02-13 10:54:25 UTC
The Totem plugins are installed in $(libdir)/mozilla/plugins, which on 64-bit platforms is /usr/lib64/mozilla/plugins. But epiphany only looks in $(MOZ_PREFIX)/lib/mozilla/plugins, which will be /usr/lib/mozilla/plugins, thus not finding the Totem plugins.
From embed/mozilla/mozilla-embed-single.cpp
static void
mozilla_init_plugin_path ()
{
        const char *user_path;
        char *new_path;

        user_path = g_getenv ("MOZ_PLUGIN_PATH");
        new_path = g_strconcat (user_path ? user_path : "",
                                user_path ? ":" : "",
                                MOZILLA_PREFIX "/lib/mozilla/plugins"
                                ":" MOZILLA_HOME "/plugins",
#ifdef HAVE_PRIVATE_PLUGINS
                                ":" PLUGINDIR,
#endif
                                (char *) NULL);

        g_setenv ("MOZ_PLUGIN_PATH", new_path, TRUE);
        g_free (new_path);
}
Comment 1 Bastien Nocera 2007-02-13 11:30:19 UTC
Created attachment 82453 [details] [review]
ephy-lookup-64-bit-plugins.patch
Comment 2 Christian Persch 2007-03-11 20:16:00 UTC
	":" MOZILLA_HOME "/plugins"
+	":" MOZILLA_NATIVE_PLUGINSDIR,

Should we look in the 'non-native' libdir at all? I.e. should we remove the MOZILLA_HOME"/plugins" entry?
Comment 3 Bastien Nocera 2007-03-12 00:04:48 UTC
The mozilla/firefox startup scripts on Fedora looks in both directories, without any problems (or so it seems). I'd put both in there. Only niggle is that it should only list the path once if MOZILLA_PREFIX "/lib/mozilla/plugins" and MOZILLA_NATIVE_PLUGINSDIR are the same.
Comment 4 Christian Persch 2007-03-12 12:56:52 UTC
Yeah, we should filter it so it's only in there once.
Comment 5 Bastien Nocera 2007-03-13 01:53:12 UTC
Created attachment 84473 [details] [review]
ephy-lookup-64-bit-plugins-2.patch

Untested patch. It makes sure all the added paths are unique, before adding them to the path envvar.
Comment 6 Bastien Nocera 2007-03-15 09:28:37 UTC
Created attachment 84634 [details] [review]
ephy-lookup-64-bit-plugins-3.patch

Fix compilation warnings.

Tested, and working.
Comment 7 Christian Persch 2007-03-15 21:22:37 UTC
list = mozilla_init_plugin_add_unique_path (list,
+					    g_getenv ("MOZ_PLUGIN_PATH"));

MOZ_PLUGIN_PATH doesn't need to contain just one path; it could contain a colon-separated list of paths. So the subsequent calls to add_unique_path won't detect if you add the same dir again.
Not sure I care about this edge-case; either commit or improve at your discretion :) [gnome-2-18 and trunk].
Comment 8 Bastien Nocera 2007-03-16 11:13:33 UTC
Created attachment 84707 [details] [review]
ephy-lookup-64-bit-plugins-4.patch

Allow MOZ_PLUGIN_PATH to be a colon separated path.
Comment 9 Bastien Nocera 2007-03-16 11:14:04 UTC
Committed to gnome-2-18 and trunk.

2007-03-16  Bastien Nocera  <hadess@hadess.net>

        * embed/mozilla/Makefile.am:
        * embed/mozilla/mozilla-embed-single.cpp:
        Fix Epiphany not finding some Gecko plugins when
        running in a multilib environment (Closes: #407419)