From 01ee754a6260dbbb06e94688047cc1a4b634db57 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 23 Aug 2025 00:39:07 -0400 Subject: [PATCH] Create prefix .desktop file first --- lug-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 5813a23..600f613 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2452,12 +2452,12 @@ StartupNotify=true StartupWMClass=rsi launcher.exe Icon=rsi-launcher.png Exec=\"$installed_launch_script\" -Path=$(echo $install_dir | sed 's/ /\\\s/g')/dosdevices/c:/Program\sFiles/Roberts\sSpace\sIndustries/RSI\sLauncher" > "$localshare_desktop_file" +Path=$(echo $install_dir | sed 's/ /\\\s/g')/dosdevices/c:/Program\sFiles/Roberts\sSpace\sIndustries/RSI\sLauncher" > "$prefix_desktop_file" # Copy the new desktop file to the user's desktop directory - cp "$localshare_desktop_file" "$home_desktop_file" + cp "$prefix_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" + cp "$prefix_desktop_file" "$localshare_desktop_file" # Update the .desktop file database if the command is available if [ -x "$(command -v update-desktop-database)" ]; then