From c9a8ed9ffcd36c1292d9c13dcac71bccca3f0a3f Mon Sep 17 00:00:00 2001 From: Daniele Scasciafratte Date: Tue, 19 Mar 2024 18:26:14 +0100 Subject: [PATCH] checkIntDeps: Fail early if Steam Not Found (#1059) --- steamtinkerlaunch | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index d405a915..19142e96 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240319-1" +PROGVERS="v14.0.20240320-1" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -18271,9 +18271,16 @@ function checkIntDeps { if [ ! -x "$(command -v "$YAD")" ]; then DEPSMISSING=1 - writelog "ERROR" "${FUNCNAME[0]} - '$YAD' was not found! Check '${PROGCMD} --help' for alternatives and/or read '$PROJECTPAGE/wiki/Yad'" "E" + writelog "ERROR" "${FUNCNAME[0]} - Yad dependency ('$YAD') was not found! Check '${PROGCMD} --help' for alternatives and/or read '$PROJECTPAGE/wiki/Yad'" "E" notiShow "$(strFix "$NOTY_NOTFOUND" "$YAD")" fi + + + if [ ! -x "$(command -v "steam")" ] && [ "$INFLATPAK" -eq 0 ]; then + DEPSMISSING=1 + echo "ERROR" "Steam not found" + writelog "ERROR" "${FUNCNAME[0]} - Steam not found" + fi setAwkBin