Commit 998bfeeb authored by Mikhail Tergoev's avatar Mikhail Tergoev

fix icon for bat and other

parent 4b27dd36
......@@ -1704,15 +1704,15 @@ edit_user_conf_from_gui () {
pw_create_gui_png () {
basename_portwine_exe="$(basename "${portwine_exe}")"
if echo "$basename_portwine_exe" | grep -i "setup\|install\|.msi" &>/dev/null ; then
if echo "$basename_portwine_exe" | grep -ie "setup\|install\|\.msi$" &>/dev/null ; then
export PW_ICON_FOR_YAD="${PORT_WINE_PATH}/data/img/setup.png"
export name_desktop_png="setup"
return 0
elif echo "$basename_portwine_exe" | grep -i ".reg" &>/dev/null ; then
elif echo "$basename_portwine_exe" | grep -ie "\.reg$" &>/dev/null ; then
export PW_ICON_FOR_YAD="${PORT_WINE_PATH}/data/img/reg.png"
export name_desktop_png="reg"
return 0
elif echo "$basename_portwine_exe"| grep -i ".bat" &>/dev/null ; then
elif echo "$basename_portwine_exe"| grep -ie "\.bat$" &>/dev/null ; then
export PW_ICON_FOR_YAD="${PORT_WINE_PATH}/data/img/bat.png"
export name_desktop_png="bat"
return 0
......
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