From 119bce62698a4638be373c0b041f89dc3db92c6d Mon Sep 17 00:00:00 2001 From: Miepee Date: Wed, 9 Nov 2022 12:11:46 +0100 Subject: [PATCH] Use final path for desktop file replacement Fixes #34 --- patcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patcher.sh b/patcher.sh index 38bf0f8..18d0fcc 100755 --- a/patcher.sh +++ b/patcher.sh @@ -166,10 +166,10 @@ radeonsi_sync_compile="true" exec "$(dirname "$(readlink -f "$0")")/.runner-unwr cp "$SCRIPT_DIR/DesktopTemplate" "$desktopPath" # Replace with proper path - sed -i "s#\[REPLACE\]#$GAMEDIR#" "$desktopPath" + sed -i "s#\[REPLACE\]#$output#" "$desktopPath" if [ "$SYSTEMWIDE" = true ]; then - sed -i "s#Icon=$GAMEDIR/icon.png#Icon=am2r#" "$desktopPath" + sed -i "s#Icon=$output/icon.png#Icon=am2r#" "$desktopPath" fi if [ "$APPIMAGE" = false ]; then