more changes to move to curl+yad

This commit is contained in:
Mikhail Tergoev
2024-02-04 17:35:21 +03:00
parent f3b1b93c6b
commit fa0e61a875
5 changed files with 54 additions and 29 deletions

View File

@ -667,7 +667,7 @@ else
kill -s SIGUSR1 $(pgrep -a yad | grep "\--key=${KEY} \--notebook" | awk '{print $1}') > /dev/null 2>&1
fi
if [[ $(cat /etc/os-release | grep -i "flatpak") ]] ;
if grep -i "flatpak" /etc/os-release &>/dev/null ;
then PW_EXEC_FROM_DESKTOP="$(cat "${PORT_WINE_PATH}/${PW_YAD_SET//¬/" "}" | grep Exec | head -n 1 | sed 's|flatpak run com.castrofidel.portproton|\"${PORT_SCRIPTS_PATH}/start.sh\"|' | awk -F'=' '{print $2}')"
else PW_EXEC_FROM_DESKTOP="$(cat "${PORT_WINE_PATH}/${PW_YAD_SET//¬/" "}" | grep Exec | head -n 1 | awk -F"=env " '{print $2}')"
fi