mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 16:19:22 +01:00
bash/usr-local-bin/mpv: initial commit of system-wide mpv and flatpak mpvs
This commit is contained in:
parent
450ff51fa9
commit
6bf64e6281
17
bash/usr-local-bin/mpv
Executable file
17
bash/usr-local-bin/mpv
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user