From caa6f1c449854ce32d5d0e6717fc9754ae274f7f Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:40:10 +0400 Subject: [PATCH] try a new launch script --- config/ags/launch-ags.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/config/ags/launch-ags.sh b/config/ags/launch-ags.sh index 8fb9621d..1079a288 100755 --- a/config/ags/launch-ags.sh +++ b/config/ags/launch-ags.sh @@ -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