Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
firefox*: fix notifications
Fixes #18712. Now firefox uses the notification daemon, if available.

Unfortunately, the same approach didn't work for thunderbird; I don't
know why.
  • Loading branch information
vcunat committed Sep 18, 2016
1 parent 6286f77 commit f27a970
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/applications/networking/browsers/firefox/default.nix
Expand Up @@ -113,6 +113,14 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
"$out/bin/firefox" --version
'';

postFixup =
# Fix notifications. LibXUL uses dlopen for this, unfortunately; see #18712.
''
patchelf --set-rpath "${lib.getLib libnotify
}/lib:$(patchelf --print-rpath "$out"/lib/firefox-*/libxul.so)" \
"$out"/lib/firefox-*/libxul.so
'';

meta = {
description = "A web browser" + lib.optionalString (pname == "firefox-esr") " (Extended Support Release)";
homepage = http://www.mozilla.com/en-US/firefox/;
Expand Down

0 comments on commit f27a970

Please sign in to comment.