kuta
August 6, 2026, 9:28am
1
I’ve spent multiple hours trying to debug this but I can’t really get anywhere.
Basically, I recently installed firefoxpwa to run some websites as PWAs—most notably
Apple Music. I’ve followed all the required steps to get it to run i.e.
programs.firefox = {
enable = true;
nativeMessagingHosts.packages = [ pkgs.firefoxpwa ];
package = pkgs.firefox;
};
environment.systemPackages = with pkgs; [
firefoxpwa
];
I’m not using the home-manager modules for either firefox or firefoxpwa.
When I launch the PWA thru the extension in Firefox everything works perfectly and as expected i.e. audio works, DRM shenangians are all fine. However, when I launch the PWA thru its desktop entry I get the following errors in browser console:
And no audio at all. The songs won’t even load. Thinking it might be something with Apple Music acting weird as a PWA, I tried Crunchyroll but the same issue occurs—i.e. launching thru the extension in Firefox everything works good, but not thru the .desktop entry. I get no audio, however , video works perfectly fine and the episodes load. Anyone have a clue as to what’s going on and how I could fix this?
Here’s the .desktop entry for Apple Music which was generated by firefoxpwa:
[Desktop Entry]
Type=Application
Version=1.4
Name=Apple Music
Comment=
Keywords=;
Categories=GTK;;
Icon=FFPWA-01KZB3QK88EZQ7352W3PGHF0BP
Exec=firefoxpwa site launch 01KZB3QK88EZQ7352W3PGHF0BP --protocol %u
Actions=
MimeType=
Terminal=false
StartupNotify=true
StartupWMClass=FFPWA-01KZB3QK88EZQ7352W3PGHF0BP
And my system information:
- system: `"x86_64-linux"`
- host os: `Linux 7.1.6, NixOS, 26.11 (Zokor), 26.11.20260804.e72e4f2`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.34.8`
- nixpkgs: `/nix/store/ysmvzxkvfyzjix8llqsvjiwnhfl5kpyf-source`
BertP
August 6, 2026, 8:52pm
2
Ran into this issue too. This symptom has been reported already with an issue (firefoxpwa: Error no decoder found for audio/mp4a-latm · Issue #505426 · NixOS/nixpkgs · GitHub ). The proposed solution still works with the latest nixos-unstable commit.
I looked into firefox/firefox-unwrapped/wrapper but today is my first time working with firefoxpwa so I’ve not gathered enough understanding yet for a proper fix.
kuta
August 6, 2026, 9:26pm
3
The fix works perfectly on my end. Thanks!!
Hopefully this should work, and be a more elegant solution:
master ← doronbehar:pkg/firefoxpwa@drm
opened 11:44AM - 07 Aug 26 UTC
This is how the 3 diff looks like:
```
after.txt | before.txt| firefox.tx… t
+ +-- 3 lines: /nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-min│+ +-- 3 lines: /nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-mi│+ +-- 3 lines: /nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-mi
/nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib │ /nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib │ /nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib
/nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib │ /nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib │ /nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib
/nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib │ /nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib │ /nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib
/nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib │ /nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib │ /nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib
/nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/l│ /nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/│ /nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/
/nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1/│ /nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1│ /nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1
/nix/store/4n1la41z3iqhq5nlrpkmd15k61rh0ch0-pipewire-1.6.8/lib │ --------------------------------------------------------------------│ /nix/store/4n1la41z3iqhq5nlrpkmd15k61rh0ch0-pipewire-1.6.8/lib
/nix/store/d4yyvx1d0p7041jz2zwvd7fx4xh8q5kh-ffmpeg-7.1.5-lib/lib │ --------------------------------------------------------------------│ /nix/store/d4yyvx1d0p7041jz2zwvd7fx4xh8q5kh-ffmpeg-7.1.5-lib/lib
/nix/store/qiwg67zp9w898zwr57g2lnhmhk0bifxa-krb5-1.22.2-lib/lib │ --------------------------------------------------------------------│ /nix/store/qiwg67zp9w898zwr57g2lnhmhk0bifxa-krb5-1.22.2-lib/lib
/nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib │ /nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib │ /nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib
/nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib │ /nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib │ /nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib
/nix/store/71ng8shgss15xpxmjs935cjdxsq2jwxd-alsa-lib-1.2.16.1/lib │ --------------------------------------------------------------------│ /nix/store/71ng8shgss15xpxmjs935cjdxsq2jwxd-alsa-lib-1.2.16.1/lib
/nix/store/iz2aszflkdsx60wm3kqk14x7xln2rj7v-sndio-1.10.0/lib │ --------------------------------------------------------------------│ /nix/store/iz2aszflkdsx60wm3kqk14x7xln2rj7v-sndio-1.10.0/lib
/nix/store/pybnxrf7wgl94ssj5gs4ikv4ggpvkyq6-libjack2-1.9.22/lib │ --------------------------------------------------------------------│ /nix/store/pybnxrf7wgl94ssj5gs4ikv4ggpvkyq6-libjack2-1.9.22/lib
/nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib │ /nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib │ /nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib
/nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-minimal-libs-261.│ /nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-minimal-libs-261│ /nix/store/hz2c9dgirq57csa0v0laas9cah5h49dl-systemd-minimal-libs-261
/nix/store/426bln8z8kcvxlhqwb1k85lw0y2bxcvz-libva-2.24.0/lib64 │ /nix/store/426bln8z8kcvxlhqwb1k85lw0y2bxcvz-libva-2.24.0/lib64 │ /nix/store/426bln8z8kcvxlhqwb1k85lw0y2bxcvz-libva-2.24.0/lib64
/nix/store/m2r2yjknh4grrafd39j016c75rqlkp54-mesa-libgbm-26.1.3/lib64 │ /nix/store/m2r2yjknh4grrafd39j016c75rqlkp54-mesa-libgbm-26.1.3/lib64│ /nix/store/m2r2yjknh4grrafd39j016c75rqlkp54-mesa-libgbm-26.1.3/lib64
/nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib64 │ /nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib64 │ /nix/store/knlcss9wcq9wl1b4mxfzbn9zw23p41lc-libnotify-0.8.8/lib64
/nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib64│ /nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib6│ /nix/store/mgilpndnwz54gc6b8izrm0wyjww8klf4-libxscrnsaver-1.2.5/lib6
/nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib64 │ /nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib64 │ /nix/store/3r10j3q6hdsglyq7dbxbjhw7abr26srn-cups-2.4.19-lib/lib64
/nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib64 │ /nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib64 │ /nix/store/bgxyb8y2fwf52f3y77y175bh8apshfv3-pciutils-3.15.0/lib64
/nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/l│ /nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/│ /nix/store/i5p83jmafxzw98q980k8qwhdby5yf0i4-vulkan-loader-1.4.350.0/
/nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1/│ /nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1│ /nix/store/90dwfpy19mxi536v98cjg3bibc3lnjgb-speech-dispatcher-0.12.1
/nix/store/4n1la41z3iqhq5nlrpkmd15k61rh0ch0-pipewire-1.6.8/lib64 │ --------------------------------------------------------------------│ /nix/store/4n1la41z3iqhq5nlrpkmd15k61rh0ch0-pipewire-1.6.8/lib64
/nix/store/d4yyvx1d0p7041jz2zwvd7fx4xh8q5kh-ffmpeg-7.1.5-lib/lib64 │ --------------------------------------------------------------------│ /nix/store/d4yyvx1d0p7041jz2zwvd7fx4xh8q5kh-ffmpeg-7.1.5-lib/lib64
/nix/store/qiwg67zp9w898zwr57g2lnhmhk0bifxa-krb5-1.22.2-lib/lib64 │ --------------------------------------------------------------------│ /nix/store/qiwg67zp9w898zwr57g2lnhmhk0bifxa-krb5-1.22.2-lib/lib64
/nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib64 │ /nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib64 │ /nix/store/bcm3mwyfja8rd2y995vcnzq06b341nnz-libglvnd-1.7.0/lib64
/nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib64 │ /nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib64│ /nix/store/c90fysvnhkyjwbyjxgbfz8lqq1alps76-libpulseaudio-17.0/lib64
/nix/store/71ng8shgss15xpxmjs935cjdxsq2jwxd-alsa-lib-1.2.16.1/lib64 │ --------------------------------------------------------------------│ /nix/store/71ng8shgss15xpxmjs935cjdxsq2jwxd-alsa-lib-1.2.16.1/lib64
/nix/store/iz2aszflkdsx60wm3kqk14x7xln2rj7v-sndio-1.10.0/lib64 │ --------------------------------------------------------------------│ /nix/store/iz2aszflkdsx60wm3kqk14x7xln2rj7v-sndio-1.10.0/lib64
/nix/store/pybnxrf7wgl94ssj5gs4ikv4ggpvkyq6-libjack2-1.9.22/lib64 │ --------------------------------------------------------------------│ /nix/store/pybnxrf7wgl94ssj5gs4ikv4ggpvkyq6-libjack2-1.9.22/lib64
/nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib64 │ /nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib64 │ /nix/store/bngxc1jjnb57hcrnr5zrs690bggmq54a-libcanberra-0.30/lib64
```
## Things done
- Built on platform:
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [ ] Tested basic functionality of all binary files, usually in `./result/bin/`.
- Nixpkgs Release Notes
- [ ] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
- [x] Follows the [automation/AI policy].
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
2 Likes