From eedb0a8f071b9d640126d7f6a5d500d761e6a977 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Mon, 18 Aug 2025 10:28:21 -0400 Subject: [PATCH] Copy backup .desktop file to prefix --- lug-helper.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 662c557..35a49b5 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2443,6 +2443,8 @@ install_game_wine() { home_desktop_file="${XDG_DESKTOP_DIR:-$HOME/Desktop}/RSI Launcher.desktop" # $HOME/.local/share/applications/RSI Launcher.desktop localshare_desktop_file="$data_dir/applications/RSI Launcher.desktop" + # $HOME/Games/star-citizen/RSI Launcher.desktop + prefix_desktop_file="$install_dir/RSI Launcher.desktop" echo "[Desktop Entry] Name=RSI Launcher @@ -2457,6 +2459,8 @@ Path=$(echo $install_dir | sed 's/ /\\\s/g')/dosdevices/c:/Program\sFiles/Robert # Copy the new desktop file to the user's desktop directory cp "$localshare_desktop_file" "$home_desktop_file" + # Copy the new desktop file to the user's prefix directory as a backup alongside the launch script + cp "$localshare_desktop_file" "$prefix_desktop_file" # Update the .desktop file database if the command is available if [ -x "$(command -v update-desktop-database)" ]; then