1
0
mirror of https://gitea.blesmrt.net/mikaela/scripts.git synced 2025-03-09 08:10:38 +01:00

18 lines
447 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# In case we are on SteamOS?
#set -x
# The usual system-wide installation
if [ -f /usr/bin/mpv ]; then
/usr/bin/mpv $@
# System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/io.mpv.Mpv ]; then
flatpak run io.mpv.Mpv $@
# User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/io.mpv.Mpv ]; then
flatpak run --user io.mpv.Mpv $@
# If not found.
else
printf "mpv doesn't seem to be installed :("
fi
#set +x