From 428e82f474f1d5d6e0b72eccb06b273d6b57892b Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:11:58 -0400 Subject: [PATCH] Lutris debug mode by default, log to a temp file --- lug-helper.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 7b69a90..4c45ebc 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2440,17 +2440,20 @@ install_game_lutris() { debug_print exit "Script error: Unable to detect Lutris version in install_game_lutris function. Aborting." fi + # Create a temporary log file + tmp_install_log="$(mktemp --suffix=".log" -t "lughelper-install-XXX")" + # Run the appropriate installer if [ "$install_version" = "native" ]; then - lutris --install "$lutris_install_script" & + lutris --debug --install "$lutris_install_script" >"$tmp_install_log" 2>&1 & elif [ "$install_version" = "flatpak" ]; then - flatpak run --file-forwarding net.lutris.Lutris --install @@ "$lutris_install_script" @@ & + flatpak run --file-forwarding net.lutris.Lutris --debug --install @@ "$lutris_install_script" @@ >"$tmp_install_log" 2>&1 & else # We shouldn't get here debug_print exit "Script error: Unknown condition for install_version in install_game_lutris() function. Aborting." fi - message info "The installation will continue in Lutris" + message info "The installation will continue in Lutris. The debug log will be written to $tmp_install_log" fi }