Fix xwayland-game-wrapper
This commit is contained in:
parent
35ee6bd659
commit
583ef3b7e1
@ -88,8 +88,9 @@ done
|
||||
(( "${OPTIND}" > ${#} )) && print_help "${0}"
|
||||
shift $(( "${OPTIND}" - 1))
|
||||
|
||||
{
|
||||
set -e
|
||||
function () {
|
||||
emulate -L zsh
|
||||
setopt errexit
|
||||
[[ -v window_manager ]] ||
|
||||
window_manager='openbox'
|
||||
[[ -v current_desktop ]] ||
|
||||
@ -105,7 +106,7 @@ function on_sigchld {
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap on_sigchld CHLD
|
||||
#trap on_sigchld CHLD
|
||||
|
||||
coproc Xwayland -fullscreen -geometry "${resolution}" -displayfd 1
|
||||
local xwayland_display
|
||||
@ -118,8 +119,11 @@ cat <&p >&2
|
||||
let cat_pid="${!}"
|
||||
|
||||
sh -c "exec -- ${window_manager}" &
|
||||
|
||||
sh -c "exec -- ${@}"
|
||||
let child_error_code="${?}"
|
||||
if (( ${child_error_code} )); then
|
||||
printf 'Child exited with error code %d\n' "${child_error_code}"
|
||||
fi
|
||||
trap -
|
||||
kill %sh %Xwayland
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user