From 17f3381d2cf55608f10530aa5f7bd1f5f8995b0f Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 29 Oct 2024 20:07:59 -0400 Subject: [PATCH] Resolve the wine binary's path now --- lug-helper.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index dfa4017..77a1ed1 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1363,7 +1363,7 @@ runner_manage_wine() { post_download_sed_string="wine_path=" # Set the value of the above variable that will be restored after a runner is deleted # In this case, we want to revert to calling system wine - post_delete_restore_value='$(command -v wine | xargs dirname)' + post_delete_restore_value="$(command -v wine | xargs dirname)" # Call the download_manage function with the above configuration # The argument passed to the function is used for special handling @@ -2851,10 +2851,8 @@ install_game_wine() { sed -i "s|^export WINEPREFIX.*|export WINEPREFIX=\"$install_dir\"|" "$installed_launch_script" # Update Wine binary in game launch script - if [ "$wine_path" != "$(command -v wine | xargs dirname)" ]; then - post_download_sed_string="wine_path=" - sed -i "s|^${post_download_sed_string}.*|${post_download_sed_string}\"${wine_path}\"|" "$installed_launch_script" - fi + post_download_sed_string="wine_path=" + sed -i "s|^${post_download_sed_string}.*|${post_download_sed_string}\"${wine_path}\"|" "$installed_launch_script" # Modify the .desktop files installed by wine to exec the game launch script debug_print continue "Updating .desktop files installed by wine..."