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>
(cherry picked from commit 116ee53f87)
This commit is contained in:
Christoph Heiss 2024-06-16 11:43:35 +02:00 committed by Thomas Gerbet
parent 011a56ef3b
commit 97b8c92290

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 = {