From 4c99f63ff4a8d28f5c71ba4960755139c7eba865 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 27 Dec 2022 12:34:00 -0500 Subject: [PATCH] scripts: add kill_at_spi2.sh --- bin/kill_at_spi2.sh | 16 ++++++++++++++++ sync.sh | 1 + 2 files changed, 17 insertions(+) create mode 100755 bin/kill_at_spi2.sh diff --git a/bin/kill_at_spi2.sh b/bin/kill_at_spi2.sh new file mode 100755 index 0000000..1920e24 --- /dev/null +++ b/bin/kill_at_spi2.sh @@ -0,0 +1,16 @@ +#!/usr/bin/sh +# +# killall_at_spi2.sh +# +# hack to fix an issue with xfce on arch linux where systemd hangs on reboot +# see: +# https://bbs.archlinux.org/viewtopic.php?id=276570 +# https://bbs.archlinux.org/viewtopic.php?pid=2032321 + +sleep 5 + +PID=$(pgrep -f at-spi-bus-launcher) + +if [ $PID ]; then + kill -s KILL $PID +fi diff --git a/sync.sh b/sync.sh index 81ee608..49d8706 100755 --- a/sync.sh +++ b/sync.sh @@ -36,6 +36,7 @@ SCRIPTS=" $HOME/bin/get_bat.sh \ $HOME/bin/hide_panel.sh \ $HOME/bin/iommu.sh \ + $HOME/bin/kill_at_spi2.sh \ $HOME/bin/monitors_off.sh \ $HOME/bin/pacman_notify.sh \ $HOME/bin/wmresize.sh \