Skip to content

Commit 1b5f650

Browse files
ryneeveretterictapen
authored andcommitted
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. (cherry picked from commit 36436ee)
1 parent 40e8aae commit 1b5f650

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • pkgs/applications/networking/browsers/firefox

pkgs/applications/networking/browsers/firefox/wrapper.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{ stdenv, lib, makeDesktopItem, makeWrapper, lndir, config
2+
, xdg_utils
23

34
## various stuff that can be plugged in
45
, flashplayer, hal-flash
@@ -123,6 +124,7 @@ let
123124
--suffix LD_LIBRARY_PATH ':' "$libs" \
124125
--suffix-each GTK_PATH ':' "$gtk_modules" \
125126
--suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
127+
--prefix PATH ':' "${xdg_utils}/bin" \
126128
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))" \
127129
--suffix PATH ':' "$out${browser.execdir or "/bin"}" \
128130
--set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \

0 commit comments

Comments
 (0)