Fix Lutris restart for installs from their github

This commit is contained in:
the-sane 2023-01-24 20:11:23 -05:00
parent 8e5193c173
commit 56f61bcb35

View File

@ -1026,7 +1026,7 @@ preflight_check() {
lutris_restart() {
# Detect the installed versions of Lutris
lutris_detect
if [ "$lutris_native" = "true" ] && pgrep -f lutris | xargs ps -fp | grep -q "[/]usr/bin/lutris"; then
if [ "$lutris_native" = "true" ] && pgrep -f lutris | xargs ps -fp | grep -Eq "[/]usr/bin/lutris|[/]usr/games/lutris"; then
# Native Lutris is running
debug_print continue "Restarting native Lutris..."
pkill -f -SIGTERM lutris && nohup lutris </dev/null &>/dev/null &