From 897936ea4ba9d13d0a4bfd605a433f775bec8711 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:11:05 -0400 Subject: [PATCH] Add debug message if wine-installed .desktop files can't be found for modification --- lug-helper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 1e90818..35921ae 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2482,7 +2482,7 @@ install_game_wine() { sed -i "s|^export WINEPREFIX.*|export WINEPREFIX=\"$install_dir\"|" "$install_dir/$(basename "$launch_script")" # Modify the .desktop files installed by wine to exec the game launch script - debug_print continue "Updating .desktop files..." + debug_print continue "Updating .desktop files installed by wine..." if [ -f "${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" ]; then # Replace the exec line with our launch script sed -i "s|^Exec=env.*|Exec=$installed_launch_script|" "${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" @@ -2494,6 +2494,8 @@ install_game_wine() { # Make it start in a terminal echo "Terminal=true" >> "${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" debug_print continue "Updated ${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" + else + debug_print continue "Unable to find ${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" fi if [ -f "$data_dir/applications/wine/Programs/Roberts Space Industries/RSI Launcher.desktop" ]; then # Replace the exec line with our launch script @@ -2506,6 +2508,8 @@ install_game_wine() { # Make it start in a terminal echo "Terminal=true" >> "$data_dir/applications/wine/Programs/Roberts Space Industries/RSI Launcher.desktop" debug_print continue "Updated $data_dir/applications/wine/Programs/Roberts Space Industries/RSI Launcher.desktop" + else + debug_print continue "Unable to find $data_dir/applications/wine/Programs/Roberts Space Industries/RSI Launcher.desktop" fi # Update the .desktop file database if the command is available