Skip to content

Commit

Permalink
Fix exit error on install init
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Feb 26, 2024
1 parent d790d87 commit 0bad8c5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lux-wine
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,16 @@ settingbar() {
fi
"$@" &
local exec_pid="$!"
(while [ -d "/proc/$exec_pid" ]
do echo -e "#\n" ; sleep 0.1 2>/dev/null
done)|yad "${yad_args[@]}" Lux Wine &>/dev/null &
local yad_pid="$!"
wait "$exec_pid" &>/dev/null
ret="$?"
kill "$yad_pid" &>/dev/null
if [[ -n "$exec_pid" && -d "/proc/$exec_pid" ]]
then
(while [ -d "/proc/$exec_pid" ]
do echo -e "#\n" ; sleep 0.1 2>/dev/null
done)|yad "${yad_args[@]}" Lux Wine &>/dev/null &
local yad_pid="$!"
wait "$exec_pid" &>/dev/null
ret="$?"
kill "$yad_pid" &>/dev/null
fi
return "$ret"
}

Expand Down

0 comments on commit 0bad8c5

Please sign in to comment.