diff --git a/audiogame-manager.sh b/audiogame-manager.sh index fb0191a..44697ea 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -200,6 +200,15 @@ add_launcher() { if ! grep -F -q -x "${launchSettings}" "${configFile}" ; then echo "${launchSettings}" >> "${configFile}" sort -o "${configFile}" "${configFile}" + # Remove .lnk files because they don't work. + find ~/Desktop -type f -iname '*.lnk' -exec bash -c ' + for f ; do + mimeType="$(file -b "$f")" + mimeType="${mimeType%%,*}" + if [[ "$mimeType" == "MS Windows shortcut" ]]; then + rm -v "$f" + fi + done' _ {} + fi }