Merge branch 'fix_egs' of github.com:alex2844/PortWINE into alex2844-fix_egs

This commit is contained in:
Mikhail Tergoev
2025-06-14 18:32:37 +03:00

View File

@ -4589,11 +4589,11 @@ portwine_launch () {
while true ; do
sleep 5
if [[ -z "$GAMEPID" ]] ; then
GAMEPID="$(pgrep -fa 'EpicPortal|epicusername|epiclocale|AUTH_LOGIN' | awk '{print $1}')"
GAMEPID="$(pgrep -fa 'EpicPortal|epicusername|epiclocale|AUTH_LOGIN' | awk '{print $1}' | head -n 1)"
else
if waitpid "$GAMEPID" ; then
sleep 1
GAMEPID="$(pgrep -fa 'EpicPortal|epicusername|epiclocale|AUTH_LOGIN' | awk '{print $1}')"
GAMEPID="$(pgrep -fa 'EpicPortal|epicusername|epiclocale|AUTH_LOGIN' | awk '{print $1}' | head -n 1)"
[[ -z "$GAMEPID" ]] && break || continue
fi
fi