Skip to content

Commit

Permalink
Changed check for SteamOS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lanii98 authored Jul 25, 2024
1 parent d0e3c27 commit 683a968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683a968

Please sign in to comment.