exodus: fix the desktop file patch

Escapes for ` and a %u have been added in upstream .desktop file, breaking the
patch in the derivation.
This commit is contained in:
Jean-Philippe Cugnet 2021-08-27 18:18:41 +02:00
parent 4ce26be2d3
commit 8ad3441f2d
No known key found for this signature in database
GPG Key ID: DE7B66F71BE85E31

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
ln -s $out/bin/Exodus $out/bin/exodus
ln -s $out/exodus.desktop $out/share/applications
substituteInPlace $out/share/applications/exodus.desktop \
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus"
--replace 'Exec=bash -c "cd \`dirname %k\` && ./Exodus %u"' "Exec=Exodus %u"
'';
dontPatchELF = true;