From 61fbeb8e40b9fcb1230270ca34b86f7d71d495a7 Mon Sep 17 00:00:00 2001 From: Omar Date: Mon, 1 Jun 2026 05:14:09 +0300 Subject: [PATCH] Prioritize native Steam detection in install.sh Changing the order of detecting steam types to check if native steam exit first. then check for flatpak and snap --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 43432d8..5857973 100644 --- a/install.sh +++ b/install.sh @@ -362,12 +362,13 @@ start_steam() { # ---------- Steam compatibility (sem mudanças) ---------- detect_steam_type() { local steam_type="unknown" - if command -v flatpak >/dev/null && flatpak list 2>/dev/null | grep -q "com.valvesoftware.Steam"; then + # Prioritize checking for native Steam first + if command -v steam >/dev/null && [[ -f /usr/bin/steam ]]; then + steam_type="native" + elif command -v flatpak >/dev/null && flatpak list 2>/dev/null | grep -q "com.valvesoftware.Steam"; then steam_type="flatpak" elif command -v snap >/dev/null && snap list 2>/dev/null | grep -q "^steam "; then steam_type="snap" - elif command -v steam >/dev/null && [[ -f /usr/bin/steam ]]; then - steam_type="native" fi echo "$steam_type" }