From 0df2659e54e840270ee683c7f29bdf4e6628415e Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 27 Dec 2020 14:34:09 -0500 Subject: [PATCH] Don't manage lutris runners if lutris isn't installed --- lug-helper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index dbc02bb..e2f3391 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -818,6 +818,12 @@ choose_runner_version() { manage_runners() { + # Check if Lutris is installed + if [ ! -x "$(command -v lutris)" ]; then + message info "Lutris does not appear to be installed." + return 1 + fi + # Configure the menu menu_text_zenity="This helper can manage your Lutris runners\n\nChoose from the following options:" menu_text_terminal="This helper can manage your Lutris runners<\n\nChoose from the following options:"