mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 09:04:19 +00:00
Resolve the wine binary's path now
This commit is contained in:
parent
84a6f840fd
commit
17f3381d2c
@ -1363,7 +1363,7 @@ runner_manage_wine() {
|
|||||||
post_download_sed_string="wine_path="
|
post_download_sed_string="wine_path="
|
||||||
# Set the value of the above variable that will be restored after a runner is deleted
|
# 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
|
# 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
|
# Call the download_manage function with the above configuration
|
||||||
# The argument passed to the function is used for special handling
|
# 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"
|
sed -i "s|^export WINEPREFIX.*|export WINEPREFIX=\"$install_dir\"|" "$installed_launch_script"
|
||||||
|
|
||||||
# Update Wine binary in game launch script
|
# Update Wine binary in game launch script
|
||||||
if [ "$wine_path" != "$(command -v wine | xargs dirname)" ]; then
|
|
||||||
post_download_sed_string="wine_path="
|
post_download_sed_string="wine_path="
|
||||||
sed -i "s|^${post_download_sed_string}.*|${post_download_sed_string}\"${wine_path}\"|" "$installed_launch_script"
|
sed -i "s|^${post_download_sed_string}.*|${post_download_sed_string}\"${wine_path}\"|" "$installed_launch_script"
|
||||||
fi
|
|
||||||
|
|
||||||
# Modify the .desktop files installed by wine to exec the game launch script
|
# Modify the .desktop files installed by wine to exec the game launch script
|
||||||
debug_print continue "Updating .desktop files installed by wine..."
|
debug_print continue "Updating .desktop files installed by wine..."
|
||||||
|
Loading…
Reference in New Issue
Block a user