From bef1c3449157ce515d5f29f627465ff03009d8f9 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 21 Oct 2022 19:19:52 -0400 Subject: [PATCH] Ask the user which lutris to install with --- lug-helper.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index d651e44..b63acff 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1692,12 +1692,19 @@ install_game() { fi if message question "Before proceeding, please refer to our Quick Start Guide:\n\n$lug_wiki\n\nAre you ready to continue?"; then + # Detect which version of Lutris is installed if [ "$lutris_native" = "true" ] && [ "$lutris_flatpak" = "true" ]; then - # Both versions of Lutris are installed - # ? + # Both versions of Lutris are installed so ask the user + if zenity --question --cancel-label="Flatpak" --ok-label="Native" --window-icon="$lug_logo" --text="This Helper has detected both the Native and Flatpak versions of Lutris\nWhich version would you like to use?" --width="400" --title="Star Citizen LUG Helper" 2>/dev/null; then + lutris --install "$install_script" & + else + flatpak run net.lutris.Lutris --install "$install_script" & + fi elif [ "$lutris_native" = "true" ]; then + # Native version only lutris --install "$install_script" & elif [ "$lutris_flatpak" = "true" ]; then + # Flatpak version only flatpak run net.lutris.Lutris --install "$install_script" & else # We shouldn't get here