trezor-suite: Remove deprecated use of --replace

The install script uses `substituteInPlace` with the deprecated
`--replace` option. Since it must modify the `Exec` line of the desktop
file to launch, the option has been changed to `--replace-fail`.
This commit is contained in:
eleanor-k
2024-11-30 16:49:37 -07:00
parent aba30997f2
commit 8ee37cc3dd
+1 -1
View File
@@ -42,7 +42,7 @@ appimageTools.wrapType2 rec {
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
install -m 444 -D ${appimageContents}/resources/images/desktop/512x512.png $out/share/icons/hicolor/512x512/apps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
# symlink system binaries instead bundled ones
mkdir -p $out/share/${pname}/resources/bin/{bridge,tor}