Use final path for desktop file replacement

Fixes #34
This commit is contained in:
Miepee 2022-11-09 12:11:46 +01:00
parent 56d7dd2d36
commit 119bce6269
1 changed files with 2 additions and 2 deletions

View File

@ -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