mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:14:21 +00:00
Lutris debug mode by default, log to a temp file
This commit is contained in:
parent
a373639a6a
commit
428e82f474
@ -2440,17 +2440,20 @@ install_game_lutris() {
|
|||||||
debug_print exit "Script error: Unable to detect Lutris version in install_game_lutris function. Aborting."
|
debug_print exit "Script error: Unable to detect Lutris version in install_game_lutris function. Aborting."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create a temporary log file
|
||||||
|
tmp_install_log="$(mktemp --suffix=".log" -t "lughelper-install-XXX")"
|
||||||
|
|
||||||
# Run the appropriate installer
|
# Run the appropriate installer
|
||||||
if [ "$install_version" = "native" ]; then
|
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
|
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
|
else
|
||||||
# We shouldn't get here
|
# We shouldn't get here
|
||||||
debug_print exit "Script error: Unknown condition for install_version in install_game_lutris() function. Aborting."
|
debug_print exit "Script error: Unknown condition for install_version in install_game_lutris() function. Aborting."
|
||||||
fi
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user