You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
google-chrome can't read alsa.conf, presumably because of Chrome/Chromium's audio sandbox. Chromium in nixpkgs gets patched to support the /nix/store/... paths needed for ALSA.
On my machine that requires dmix (specified in alsa.conf), I usually do not hear audio output in Chrome.
To Reproduce
Steps to reproduce the behavior:
On NixOS master, install google-chrome and run google-chrome-stable
I attempted this fix, but Chrome is not a happy camper
diff --git a/pkgs/applications/networking/browsers/google-chrome/default.nix b/pkgs/applications/networking/browsers/google-chrome/default.nix
index b0ae61c761d..2f21484e32a 100644
--- a/pkgs/applications/networking/browsers/google-chrome/default.nix+++ b/pkgs/applications/networking/browsers/google-chrome/default.nix@@ -129,6 +129,10 @@ in stdenv.mkDerivation rec {
patchelf --set-rpath $rpath $elf
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $elf
done
++ # Let the audio sandbox read alsa.conf+ # We can't use ${alsaLib}/share/alsa/ because that string is longer than the one we're replacing+ sed -i -e 's,/usr/share/alsa/,/nix/store/\x00\x00\x00\x00\x00,g' $out/share/google/$appname/chrome
'';
meta = {
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
Describe the bug
google-chrome can't read alsa.conf, presumably because of Chrome/Chromium's audio sandbox. Chromium in nixpkgs gets patched to support the
/nix/store/...
paths needed for ALSA.On my machine that requires dmix (specified in alsa.conf), I usually do not hear audio output in Chrome.
To Reproduce
Steps to reproduce the behavior:
google-chrome
and rungoogle-chrome-stable
Expected behavior
Working audio
Metadata
Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result."x86_64-linux"
Linux 4.19.62-hardened, NixOS, 19.09.git.cd22d6f (Loris)
yes
yes
nix-env (Nix) 2.2.2
""
/var/nixpkgs
Maintainer information:
The text was updated successfully, but these errors were encountered: