diff --git a/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh index b4fdf2e0275a..fb509126dba1 100644 --- a/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh +++ b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh @@ -1,17 +1,20 @@ . $stdenv/setup +shopt -s nullglob + mkdir -p $out/bin pluginPath= extraLibPath= for i in $plugins; do - p=$i/lib/mozilla/plugins - if test -e $p; then - pluginPath=$pluginPath${pluginPath:+:}$p - if test -e $p/extra-library-path; then - extraLibPath=$extraLibPath${extraLibPath:+:}$(cat $p/extra-library-path) + for p in $i/lib/mozilla/plugins $i/jre/plugin/*/mozilla; do + if test -e $p; then + pluginPath=$pluginPath${pluginPath:+:}$p + if test -e $p/extra-library-path; then + extraLibPath=$extraLibPath${extraLibPath:+:}$(cat $p/extra-library-path) + fi fi - fi + done done cat > $out/bin/firefox <