# FirefoxPWA: DRM not working when launched thru .desktop entry

**URL:** https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371
**Category:** Help
**Created:** [August 6, 2026, 9:28am UTC](https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371 "2026-08-06T09:28:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kuta](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/k/278dde/32.png) [@kuta](https://discourse.nixos.org/u/kuta)
#### Post date: [August 6, 2026, 9:28am UTC](https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371/1 "2026-08-06T09:28:50Z")

</div>

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.

```nix
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:

 ![Screenshot_20260806_051035](https://discourse.nixos.org/uploads/default/original/3X/b/0/b04f0cfae8b09315937c3d2e0825976ddaeca6c8.png)

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`:

```bash
[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:

```console
 - 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`

```

---

<div class="post-metadata">

### Author: ![BertP](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bertp/32/31616_2.png) [@BertP](https://discourse.nixos.org/u/BertP)
#### Post date: [August 6, 2026, 8:52pm UTC](https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371/2 "2026-08-06T20:52:45Z")

</div>

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](https://github.com/NixOS/nixpkgs/issues/505426)). 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.

---

<div class="post-metadata">

### Author: ![kuta](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/k/278dde/32.png) [@kuta](https://discourse.nixos.org/u/kuta)
#### Post date: [August 6, 2026, 9:26pm UTC](https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371/3 "2026-08-06T21:26:32Z")

</div>

The fix works perfectly on my end. Thanks!!

---

<div class="post-metadata">

### Author: ![doronbehar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/doronbehar/32/1387_2.png) [@doronbehar](https://discourse.nixos.org/u/doronbehar)
#### Post date: [August 7, 2026, 11:59am UTC](https://discourse.nixos.org/t/firefoxpwa-drm-not-working-when-launched-thru-desktop-entry/79371/4 "2026-08-07T11:59:41Z")

</div>

Hopefully this should work, and be a more elegant solution:

> <https://github.com/NixOS/nixpkgs/pull/550150>
>
> 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
