From 637590ab1ec2d2f90056499e8fd109f011e1efb8 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 15 Jun 2021 17:44:37 +0200 Subject: [PATCH] newsboatupdate safe killswitch if stuck --- .local/bin/newsboatupdate | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/newsboatupdate diff --git a/.local/bin/newsboatupdate b/.local/bin/newsboatupdate new file mode 100755 index 0000000..3419ced --- /dev/null +++ b/.local/bin/newsboatupdate @@ -0,0 +1,7 @@ +#!/bin/sh +DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus +export DBUS_SESSION_BUS_ADDRESS +export DISPLAY=:0.0 +newsboat -x reload & pid=$! +sleep 60 +kill -15 $pid