2fc271ffdd
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 |
||
---|---|---|
.. | ||
applications | ||
build-support | ||
common-updater | ||
data | ||
desktops | ||
development | ||
games | ||
misc | ||
os-specific | ||
pkgs-lib | ||
servers | ||
shells | ||
stdenv | ||
test | ||
tools | ||
top-level |