From 8d130668d60ed793770a4ddf28b1d4bc10b62d58 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:41:31 -0400 Subject: [PATCH] Fix pgrep/pkill commands to auto-restart Lutris --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 1abebac..fd09f50 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -909,10 +909,10 @@ preflight_check() { # Restart lutris if necessary lutris_restart() { - if [ "$lutris_needs_restart" = "true" ] && [ "$(pgrep lutris)" ]; then + if [ "$lutris_needs_restart" = "true" ] && [ "$(pgrep -f lutris)" ]; then if message question "Lutris must be restarted to detect the changes.\nWould you like this Helper to restart it for you?"; then debug_print continue "Restarting Lutris..." - pkill -SIGTERM lutris && nohup lutris /dev/null & + pkill -f -SIGTERM lutris && nohup lutris /dev/null & fi fi lutris_needs_restart="false"