From 425f3ee3ddd0fbf758790b4d377c9f071cbf2bd9 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 27 Oct 2024 08:45:04 +0100 Subject: [PATCH] nongnu: firefox-esr: Wrap with pipewire. Firefox needs pipewire in LD_LIBRARY_PATH for screensharing on Wayland, otherwise the screensharing just won't start. * nongnu/packages/mozilla.scm (firefox-esr)[arguments]: Add pipewire lib path to LD_LIBRARY_PATH variable in 'wrap-program phase. Signed-off-by: John Kehayias --- nongnu/packages/mozilla.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index d7e2eda..ee55354 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -370,13 +370,17 @@ '("mesa" "ffmpeg"))))) (pulseaudio-lib (string-append (assoc-ref inputs "pulseaudio") "/lib")) + ;; For sharing on Wayland + (pipewire-lib (string-append (assoc-ref inputs "pipewire") + "/lib")) ;; For U2F and WebAuthn (eudev-lib (string-append (assoc-ref inputs "eudev") "/lib")) (gtk-share (string-append (assoc-ref inputs "gtk+") "/share"))) (wrap-program (car (find-files lib "^firefox$")) `("LD_LIBRARY_PATH" prefix (,mesa-lib ,libnotify-lib ,libva-lib - ,pulseaudio-lib ,eudev-lib ,@rdd-whitelist)) + ,pulseaudio-lib ,eudev-lib ,@rdd-whitelist + ,pipewire-lib)) `("XDG_DATA_DIRS" prefix (,gtk-share)) `("MOZ_LEGACY_PROFILES" = ("1")) `("MOZ_ALLOW_DOWNGRADE" = ("1"))))))