Commit 732a0018 authored by Mikhail Tergoev's avatar Mikhail Tergoev

used

parent 4906e8cc
...@@ -878,7 +878,7 @@ search_desktop_file () { ...@@ -878,7 +878,7 @@ search_desktop_file () {
if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then
while IFS=" " read -r -a line2 ; do while IFS=" " read -r -a line2 ; do
if [[ -z ${line2[0]} ]] \ if [[ -z ${line2[0]} ]] \
|| [[ ! ${line2[0]} =~ (.[Bb][Aa][Tt]$|.[Ee][Xx][Ee]$|.[Mm][Ss][Ii]$|.[Rr][Ee][Gg]$) ]] ; then || [[ ! ${line2[0],,} =~ (.bat$|.exe$|.msi$|.reg$) ]] ; then
BROKEN_LINE=1 BROKEN_LINE=1
break break
fi fi
...@@ -4030,18 +4030,18 @@ portwine_launch () { ...@@ -4030,18 +4030,18 @@ portwine_launch () {
fi fi
[[ $PW_LOG != 1 ]] && debug_timer --start -s "PW_TIME_IN_GAME" [[ $PW_LOG != 1 ]] && debug_timer --start -s "PW_TIME_IN_GAME"
case "$portwine_exe" in case "${portwine_exe,,}" in
*.[Ee][Xx][Ee]) *.exe)
pw_run ${PW_VD_TMP[@]} ${WINE_WIN_START} "$portwine_exe" pw_run ${PW_VD_TMP[@]} ${WINE_WIN_START} "$portwine_exe"
;; ;;
*.[Bb][Aa][Tt]) *.bat)
PW_USE_TERMINAL=1 PW_USE_TERMINAL=1
pw_run ${PW_VD_TMP[@]} "$portwine_exe" pw_run ${PW_VD_TMP[@]} "$portwine_exe"
;; ;;
*.[Mm][Ss][Ii]) *.msi)
pw_run ${PW_VD_TMP[@]} msiexec /i "$portwine_exe" pw_run ${PW_VD_TMP[@]} msiexec /i "$portwine_exe"
;; ;;
*.[Rr][Ee][Gg]) *.reg)
pw_run ${PW_VD_TMP[@]} regedit "$portwine_exe" pw_run ${PW_VD_TMP[@]} regedit "$portwine_exe"
;; ;;
*) *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment