summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorryneeverett <ryneeverett@gmail.com>2020-12-04 15:54:00 +0000
committerryneeverett <ryneeverett@gmail.com>2020-12-07 15:43:53 +0000
commit36436ee8ac23d2ecff5faa55f5dedf3499c7664a (patch)
tree61e0a7c7aef242bc755e11efe5931ae180d5a966 /pkgs/applications/networking
parentcc9dda51fa289d5153e826ecb77fca1f0bc36fcb (diff)
downloadnixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar.gz
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar.bz2
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar.lz
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar.xz
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.tar.zst
nixpkgs-36436ee8ac23d2ecff5faa55f5dedf3499c7664a.zip
firefox: Prefix $PATH with xdg_utils
This is required for certain URIs that require launching external
programs (e.g. mailto:, magnet:, or irc:) or setting the default browser
via xdg-settings.

Resolve #92751.

Comparable to #96922.
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/browsers/firefox/wrapper.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix
index f9b7f2bb8a2..50a49de94ab 100644
--- a/pkgs/applications/networking/browsers/firefox/wrapper.nix
+++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix
@@ -1,5 +1,5 @@
 { stdenv, lib, makeDesktopItem, makeWrapper, lndir, config
-, replace, fetchurl, zip, unzip, jq
+, replace, fetchurl, zip, unzip, jq, xdg_utils
 
 ## various stuff that can be plugged in
 , flashplayer, hal-flash
@@ -249,6 +249,7 @@ let
             --suffix LD_LIBRARY_PATH ':' "$libs" \
             --suffix-each GTK_PATH ':' "$gtk_modules" \
             --suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
+            --prefix PATH ':' "${xdg_utils}/bin" \
             --prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))" \
             --suffix PATH ':' "$out${browser.execdir or "/bin"}" \
             --set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \