floorp: patch .desktop PWA file command path

Floorp hardcodes /usr/bin/floorp as binary path when generating .desktop
files for PWAs. That obviously not work for Nix-installed version, so
patch it to just refer to "floorp", relying on $PATH.

See also #314115.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-06-16 11:43:35 +02:00
parent 8fc88142fe
commit 116ee53f87
No known key found for this signature in database
GPG Key ID: 6817E9C75C0785D7

View File

@ -31,6 +31,13 @@
"--with-unsigned-addon-scopes=app,system"
];
extraPostPatch = ''
# Fix .desktop files for PWAs generated by Floorp; they hardcode /usr/bin
# https://github.com/NixOS/nixpkgs/issues/314115
substituteInPlace floorp/browser/base/content/modules/ssb/LinuxSupport.mjs \
--replace-fail /usr/bin/floorp floorp
'';
updateScript = ./update.sh;
meta = {