nixpkgs/pkgs/applications/networking/browsers/firefox
Wesley Merkel 2fc271ffdd Add Firefox libs to beginning of LD_LIBRARY_PATH
When firefox is executed by programs that also make changes to
`LD_LIBRARY_PATH`, the paths can conflict causing firefox to look for
shared libraries in the wrong location. This is because the wrapper
script around firefox *appends* library paths to `LD_LIBRARY_PATH`
instead of prepending them, causing library paths that are already in
the environment to take precedence over the library paths that firefox
depends on.

As an example, Discord and firefox both depend on different versions of
libnss. When Discord launches firefox, which happens when clicking on
hyperlinks, the path in `LD_LIBRARY_PATH` to libnss set by Discord takes
precedence over then one set by the firefox wrapper script causing
firefox to load a different version of libnss than the one it was built
against. This causes a fatal error in firefox which prevents it from
starting.

This commit fixes this issue by switching the firefox wrapper script to
*prepend* its library paths to `LD_LIBRARY_PATH`.

Fixes #118432
2021-04-14 10:52:28 -05:00
..
common.nix kerberos: deprecate alias 2021-04-04 03:18:56 +02:00
env_var_for_system_dir-ff85.patch firefox: 85.0.2 -> 86.0 2021-02-24 15:06:49 +01:00
env_var_for_system_dir-ff86.patch firefox: 85.0.2 -> 86.0 2021-02-24 15:06:49 +01:00
lto-dependentlibs-generation-ffx83.patch firefox: overhaul LTO 2021-01-13 08:06:48 -05:00
no-buildconfig-ffx76.patch firefox*, thunderbird*: explain no-buildconfig*.patch 2020-08-19 19:46:55 +02:00
no-buildconfig-ffx84.patch firefox: 83.0 -> 84.0 2020-12-16 17:49:31 +01:00
packages.nix firefox, firefox-esr: add myself to maintainers 2021-03-22 16:09:57 +01:00
update.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
wrapper.nix Add Firefox libs to beginning of LD_LIBRARY_PATH 2021-04-14 10:52:28 -05:00