try a new launch script

This commit is contained in:
Sakooooo 2024-08-05 17:40:10 +04:00
parent b64982771b
commit caa6f1c449
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,6 +1,12 @@
#!/bin/sh
pkill ags
CONFIG_FILES="/home/sako/.config/ags"
ags &
trap "killall ags" EXIT
while true; do
ags &
export APP_PID=$!
inotifywait -e create,modify $CONFIG_FILES
kill $APP_PID
done