iso-profiles/oem/gaming-oem-kde6/desktop-overlay/usr/bin/gamescope-wayland-teardown-workaround

13 lines
231 B
Text
Raw Normal View History

2024-03-07 12:20:40 +01:00
#!/bin/bash
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