nixpkgs/pkgs
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
..
applications Add Firefox libs to beginning of LD_LIBRARY_PATH 2021-04-14 10:52:28 -05:00
build-support Merge pull request #102725 from thefloweringash/dockertools-proc 2021-04-12 14:14:24 +01:00
common-updater
data recursive: 1.077 -> 1.078 2021-04-12 04:20:00 +00:00
desktops Merge pull request #119374 from romildo/upd.xfdashboard 2021-04-14 00:25:35 +02:00
development python3Packages.pywemo: disable flaky test 2021-04-14 15:32:24 +02:00
games Merge pull request #109146 from iblech/patch-sdlpop 2021-04-13 08:15:27 -03:00
misc Merge pull request #119378 from rhoriguchi/vscode-extensions/hashicorp.terraform 2021-04-14 01:21:28 +02:00
os-specific netbsd: take fetchcvs from buildPackages to fix eval 2021-04-14 14:58:08 +00:00
pkgs-lib
servers Merge pull request #119427 from talyz/tengine-modules 2021-04-14 17:42:01 +02:00
shells oh-my-zsh: 2021-04-07 → 2021-04-11 2021-04-12 18:03:50 +00:00
stdenv stdenv/make-derivation: add -static to name if building statically 2021-04-13 12:33:00 +02:00
test
tools Merge pull request #119404 from dotlambda/ytfzf-1.1.3 2021-04-14 14:31:56 +02:00
top-level super-productivity: 1.10.45 -> 6.5.2 2021-04-14 14:53:48 +02:00