newsboatupdate safe killswitch if stuck

This commit is contained in:
Alexander Bocken 2021-06-15 17:44:37 +02:00
parent 18ca6dae6c
commit 637590ab1e
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

7
.local/bin/newsboatupdate Executable file
View File

@ -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