From 2343bfb7338cbba07f20a3c362badef0486f27b6 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 8 Nov 2022 21:27:08 -0500 Subject: [PATCH] Improve flatpak lutris detection Handles a scenario where both the stable and beta versions are installed --- lug-helper.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 9c81fdc..854cf0f 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -894,18 +894,14 @@ lutris_detect() { # Detect native lutris if [ -x "$(command -v lutris)" ]; then - # Native Lutris is installed lutris_installed="true" lutris_native="true" fi # Detect flatpak lutris - if [ -x "$(command -v flatpak)" ]; then - flatpak info net.lutris.Lutris >/dev/null 2>&1 - if [ "$?" -eq 0 ]; then + if [ -x "$(command -v flatpak)" ] && flatpak list --app | grep -q Lutris; then lutris_installed="true" lutris_flatpak="true" - fi fi }