From 514925035b1a5e0bc9875e196c90fb27ca339db7 Mon Sep 17 00:00:00 2001 From: Htylol Date: Sun, 14 Jul 2024 04:05:02 +0500 Subject: [PATCH] =?UTF-8?q?On=20some=20system=20yad=20not=20working=20with?= =?UTF-8?q?=20=C2=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_from_portwine/scripts/functions_helper | 4 ++-- data_from_portwine/scripts/start.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index a9bc0f96..fa71b226 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -4946,8 +4946,8 @@ run_desktop_b_click () { fi if check_flatpak - then PW_EXEC_FROM_DESKTOP="$(grep Exec "${PORT_WINE_PATH}/${PW_YAD_SET//¬/" "}" | head -n 1 | sed 's|flatpak run ru.linux_gaming.PortProton|\"${PORT_SCRIPTS_PATH}/start.sh\"|' | awk -F'=' '{print $2}')" - else PW_EXEC_FROM_DESKTOP="$(grep Exec "${PORT_WINE_PATH}/${PW_YAD_SET//¬/" "}" | head -n 1 | awk -F"=env " '{print $2}')" + then PW_EXEC_FROM_DESKTOP="$(grep Exec "${PORT_WINE_PATH}/${PW_YAD_SET//@_@/ }" | head -n 1 | sed 's|flatpak run ru.linux_gaming.PortProton|\"${PORT_SCRIPTS_PATH}/start.sh\"|' | awk -F'=' '{print $2}')" + else PW_EXEC_FROM_DESKTOP="$(grep Exec "${PORT_WINE_PATH}/${PW_YAD_SET//@_@/ }" | head -n 1 | awk -F"=env " '{print $2}')" fi print_info "Restarting PP after choose desktop file..." diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 13a0f0ea..eca69745 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -581,7 +581,8 @@ else then convert "${PW_NAME_D_ICON}" -resize 48x48 "${PW_NAME_D_ICON_48}" fi - PW_GENERATE_BUTTONS+="--field= ${PW_DESKTOP_FILES//".desktop"/""}!${PW_NAME_D_ICON_48}!:FBTN%@bash -c \"run_desktop_b_click "${PW_DESKTOP_FILES//" "/¬}"\"%" + PW_DESKTOP_HELPER="${PW_DESKTOP_FILES// /@_@}" + PW_GENERATE_BUTTONS+="--field= ${PW_DESKTOP_FILES//".desktop"/""}!${PW_NAME_D_ICON_48}!:FBTN%@bash -c \"run_desktop_b_click "${PW_DESKTOP_HELPER}"\"%" done IFS="$orig_IFS"