iso-profiles/oem/asus-rog-ally-oem-kde/live-overlay/usr/bin/gamescope-wayland-teardown-workaround
2023-08-15 12:36:10 +02:00

12 lines
231 B
Bash
Executable file

#!/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