Only if needed

This commit is contained in:
David Heinemeier Hansson
2025-07-09 19:12:19 -04:00
parent fef5f38dc9
commit 08038e272c

View File

@ -1,4 +1,5 @@
echo "Switching from vlc to mpv for the default video player"
if ! command -v mpv &>/dev/null; then
yay -Rns --noconfirm vlc
rm ~/.local/share/applications/vlc.desktop
yay -S --noconfirm mpv
@ -17,3 +18,4 @@ xdg-mime default mpv.desktop video/x-ms-asf
xdg-mime default mpv.desktop video/x-ogm+ogg
xdg-mime default mpv.desktop video/x-theora+ogg
xdg-mime default mpv.desktop application/ogg
fi