From 683a9687f89a26895a7e5c2ed29ee8364c6916c5 Mon Sep 17 00:00:00 2001 From: Basic Java Coder <43179251+basicJavaCoder@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:13:17 +0100 Subject: [PATCH] Changed check for SteamOS Ani-Cli originally checks for Steam Deck / SteamOS by checking for the default hostname, which breaks the script if the hostname is changed by the user. This fix checks for the kernel codename instead. --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index 90669f0d8..e84d5eb0b 100755 --- a/ani-cli +++ b/ani-cli @@ -324,7 +324,7 @@ quality="${ANI_CLI_QUALITY:-best}" case "$(uname -a)" in *Darwin*) player_function="${ANI_CLI_PLAYER:-iina}" ;; # mac OS *ndroid*) player_function="${ANI_CLI_PLAYER:-android_mpv}" ;; # Android OS (termux) - *steamdeck*) player_function="${ANI_CLI_PLAYER:-flatpak_mpv}" ;; # steamdeck OS + *neptune*) player_function="${ANI_CLI_PLAYER:-flatpak_mpv}" ;; # steamdeck OS - Fixed checking for default hostname, now checks for kernel codename. *MINGW* | *WSL2*) player_function="${ANI_CLI_PLAYER:-mpv.exe}" ;; # Windows OS *ish*) player_function="${ANI_CLI_PLAYER:-iSH}" ;; # iOS (iSH) *) player_function="${ANI_CLI_PLAYER:-mpv}" ;; # Linux OS