Skip to content

Commit

Permalink
Update automatic shortcuts creation
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Feb 18, 2024
1 parent da5d1b9 commit 49cf0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lux-wine
Original file line number Diff line number Diff line change
Expand Up @@ -3723,7 +3723,7 @@ shrt_from_lnk() {
old_lnk_name="$lnk_name"
lnk_name="$(basename "$(dirname "$lnk_file")"|sed 's| \[GOG.com\]||i')"
IGNLNKDIRS=('by.xatab')
IGNLNKNAMES=('Запустить игру.lnk' 'Launch the game.lnk')
IGNLNKNAMES=('Запустить игру.lnk' 'Launch the game.lnk' "${lnk_name}.lnk")
if [[ "${IGNLNKDIRS[@],,}" =~ "${lnk_name,,}" ]]
then lnk_name="$old_lnk_name"
elif [[ ! "${IGNLNKNAMES[@],,}" =~ "${old_lnk_name,,}" ]]
Expand Down Expand Up @@ -3816,7 +3816,7 @@ shrt_from_url() {
then
old_url_name="$url_file_name"
url_file_name="$(basename "$(dirname "$url_file")"|sed 's| \[GOG.com\]||i')"
IGNURLNAMES=('Запустить игру.url' 'Launch the game.url')
IGNURLNAMES=('Запустить игру.url' 'Launch the game.url' "${url_file_name}.url")
[[ "${IGNURLNAMES[@],,}" =~ "${old_url_name,,}" ]]||\
url_file_name+=" - $old_url_name"
fi
Expand Down

0 comments on commit 49cf0e4

Please sign in to comment.