bazzite/system_files/deck/kinoite/usr/bin/gamescope-wayland-teardown-workaround

13 lines
229 B
Bash
Executable File

#!/bin/sh
set -eu
TARGETS=('/bin/bash /usr/bin/gamescope-session'
'/usr/bin/kwin_x11')
for target in "${TARGETS[@]}"; do
for processtree in $(pgrep -xf "$target" || true); do
kill -- "-$processtree"
done
done