Commit cc4ddbf5 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'used-exiftool' of github.com:Boria138/PortWINE into Boria138-used-exiftool

parents 38dcce12 ae02af09
...@@ -1428,11 +1428,19 @@ edit_user_conf_from_gui () { ...@@ -1428,11 +1428,19 @@ edit_user_conf_from_gui () {
pw_create_gui_png () { pw_create_gui_png () {
if [ ! -z "${PORTWINE_CREATE_SHORTCUT_NAME}" ] ; then if [ ! -z "${PORTWINE_CREATE_SHORTCUT_NAME}" ] ; then
PORTPROTON_NAME="${PORTWINE_CREATE_SHORTCUT_NAME}" export PORTPROTON_NAME="${PORTWINE_CREATE_SHORTCUT_NAME}"
else else
PORTPROTON_NAME="$(basename "${portwine_exe}" | sed s/".exe"/""/gi )" PW_PRODUCTNAME=$(env PERL5LIB="${PW_PLUGINS_PATH}/portable/lib/perl5" "${PW_PLUGINS_PATH}/portable/bin/exiftool" -ProductName "${portwine_exe}" 2>/dev/null | sed -n 's/^Product Name\s*:\s*//p')
if [[ "$PW_PRODUCTNAME" =~ "Launcher" ]] || [[ "$PW_PRODUCTNAME" =~ "RU" ]] ; then
PW_PRODUCTNAME=$(echo "$PW_PRODUCTNAME" | sed 's/Launcher\|RU//g')
fi
if [[ ! -z "$PW_PRODUCTNAME" ]] ; then
export PORTPROTON_NAME="$PW_PRODUCTNAME"
else
export PORTPROTON_NAME="$(basename "$(dirname "${portwine_exe}")")"
fi
fi fi
export PORTPROTON_NAME
PW_RESIZE_TO=128 PW_RESIZE_TO=128
try_remove_file "${PORT_WINE_PATH}/data/img/setup.png" try_remove_file "${PORT_WINE_PATH}/data/img/setup.png"
try_remove_file "${PORT_WINE_PATH}/data/img/Setup.png" try_remove_file "${PORT_WINE_PATH}/data/img/Setup.png"
......
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