fix(desktop file): remove Path field and file extension in Icon field

- Remove the 'Path' field as it's used to indicate the working
  directory for the 'Exec' command. (See: https://specifications.freedesktop.org/desktop-entry-spec/latest/recognized-keys.html#id-1.7.6)
- Remove the extension from the 'Icon' field as it breaks the
  desktop icon on some systems. Keeping the extension will also break the desktop file entry in the
  future. (See: https://specifications.freedesktop.org/icon-theme-spec/latest/#icon_lookup)
This commit is contained in:
Tashinka
2025-09-15 20:13:31 +02:00
parent a7650a2c93
commit 4295f5c2e1

View File

@@ -2479,9 +2479,8 @@ Comment=RSI Launcher
Keywords=Star Citizen;StarCitizen
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" > "$prefix_desktop_file"
Icon=rsi-launcher
Exec=\"$installed_launch_script\"" > "$prefix_desktop_file"
# Copy the new desktop file to ~/.local/share/applications
mkdir -p "$data_dir/applications"